Skip to content

Contradictory statements about CODATA version #429

Description

@jaemolihm

There are two versions of fundamental constants implemented: CODATA 2010 and 2006.

The header of constants.F90 says that the default is CODATA 2010,

!! Values of the fundamental constants are taken from
!! http://physics.nist.gov/cuu/Constants/index.html
!! By default CODATA2010 is used (CODATA2006 can be selected
!! using an appropriate compile-time flag (see INSTALL guide)

while README.install says CODATA 2006 is the default.

wannier90/README.install

Lines 223 to 229 in bf0642b

* CODATA2006
Use physical constants from 2006 version of CODATA tables
(http://physics.nist.gov/cuu/Constants/index.html)
(Note that this is the default choice if nothing is specified)
* CODATA2010
Use physical constants from 2010 version of CODATA tables
(http://physics.nist.gov/cuu/Constants/index.html)

From the code, it seems that 2006 is the default.

!~ Pick up default value; unfortunately, it doesn't work with indentation...
#ifndef CODATA2006
#ifndef CODATA2010
#define CODATA2006
#endif
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions