codata
is a Fortran library providing the latest codata constants (2022) and
older values (2018, 2014 and 2010).
The raw codata are taken from http://physics.nist.gov/constants.
The constants (values and uncertainties) are implemented as double precision reals.
The names are quite long and can be aliased with shorter names.
To use codata
within your fpm project,
add the following to your fpm.toml
file:
[dependencies]
codata = { git="https://github.com/MilanSkocic/codata.git" }
Notes:
The latest codata constants were integrated in the stdlib. The constants are implemented as derived type which carries the name, the value, the uncertainty and the unit. This library will be complementary to the constants defined in the stdlib by providing older values for the constants.
If you only need sources for the codata constants that you can integrate directly in your sources you may be interested by https://github.com/vmagnin/fundamental_constants.
Extra:
py
folder. See py/README.md
.C
folder. See C/README.md
gfortran>=10
fpm>=0.7
stdlib>=0.5
fypp>=3.0
A Makefile is provided, which uses fpm, for building the library.
Build: the configuration file will set all the environment variables necessary for the compilation
chmod +x configure.sh
. ./configure.sh
make
Run tests
make test
Install
make install
Uninstall
make uninstall
MIT