Skip to content

Commit 024011d

Browse files
committed
update fundamental physical constants to CODATA 2022 values
1 parent 467362b commit 024011d

5 files changed

Lines changed: 23 additions & 24 deletions

File tree

source/kinetic.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
c
1414
c
1515
c "kinetic" computes the total kinetic energy and kinetic energy
16-
c contributions to the pressure tensor by summing over velocities
16+
c tensor components by summing over the velocities
1717
c
1818
c
1919
subroutine kinetic (eksum,ekin,temp)

source/lusolve.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
c
1515
c "lusolve" uses a LU factorization with partial pivoting to solve
1616
c the linear system Ax = b, returning "x" in "b"; "A" is the upper
17-
c triangle of a symmetric matrix and the diagonal stored by rows
17+
c triangle and diagonal of a symmetric matrix stored by rows
1818
c
1919
c literature reference:
2020
c

source/qrsolve.f

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
c ##################################################################
1313
c
1414
c
15-
c "qrfact" computes the QR factorization of an m by n matrix a
16-
c via Householder transformations with optional column pivoting;
17-
c the routine determines an orthogonal matrix q, a permutation
18-
c matrix p, and an upper trapezoidal matrix r with diagonal
19-
c elements of nonincreasing magnitude, such that a*p = q*r; the
20-
c Householder transformation for column k, k = 1,2,...,min(m,n),
21-
c is of the form:
15+
c "qrfact" computes the QR factorization of an m by n matrix via
16+
c a Householder transformations with optional column pivoting;
17+
c it finds an orthogonal matrix q, permutation matrix p, and upper
18+
c trapezoidal matrix r with diagonal elements of nonincreasing
19+
c magnitude, such that a*p = q*r; the Householder transformation
20+
c for column k, k = 1,2,...,min(m,n), is of the form:
2221
c
2322
c i - (1/u(k))*u*u(transpose)
2423
c

source/rattle.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ subroutine shake2 (derivs)
708708
c
709709
c note this routine is needed due to instability of SHAKE and
710710
c RATTLE algorithms when four constrained sites lie in a plane;
711-
c gradient components of the fourth atom are moved to the other
712-
c atoms, and fourth atom ideal coordinates are set elsewhere
711+
c gradient components of the fourth atie are moved to the other
712+
c atoms, and fourth site ideal coordinates are set elsewhere
713713
c
714714
c
715715
subroutine water4 (derivs)

source/units.f

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@
1818
c Revision of the SI - The Result of Three Decades of Progress
1919
c in Metrology", Metrologia, 56, 022001 (2019)
2020
c
21-
c E. Teisinga, P. J. Mohr, D. B. Newell and B. N. Taylor, "CODATA
22-
c Recommended Values of the Fundamental Physical Constants: 2018",
23-
c Journal of Physical and Chemical Reference Data, 50, 033105 (2021)
21+
c P. J. Mohr, D. B. Newell, B. N. Taylor and E. Teisinga, "CODATA
22+
c Recommended Values of the Fundamental Physical Constants: 2022",
23+
c Reviews of Modern Physics, 97, 025002 (2025)
2424
c
2525
c Where appropriate, values are from the November 2018 revision
2626
c of SI units to fixed values by the 26th General Conference on
27-
c Weights and Measures; other values are taken from 2018 CODATA
28-
c reference constants or are described below
27+
c Weights and Measures; other values are taken from the CODATA
28+
c recommended values or are as described below
2929
c
3030
c The conversion from calorie to Joule is the definition of the
3131
c thermochemical calorie as 1 cal = 4.1840 J from ISO 31-4 (1992)
3232
c
3333
c The "coulomb" energy conversion factor is found by dimensional
3434
c analysis of Coulomb's Law, that is by dividing the square of the
3535
c elementary charge in Coulombs by 4*pi*eps0*rij, where eps0 is
36-
c the permittivity of vacuum (the "electric constant"); note that
36+
c the vacuum electric permittivity (the "electric constant"); note
3737
c eps0 is typically given in F/m, equivalent to C**2/(J-m)
3838
c
39-
c The approximate value used for the Debye, 3.33564 x 10-30 C-m,
40-
c is from IUPAC Compendium of Chemical Technology, 2nd Ed. (1997)
39+
c The approximate value for the Debye, 3.33564 x 10-30 C-m, is
40+
c from the IUPAC Compendium of Chemical Technology, 2nd Ed. (1997)
4141
c
4242
c The value of "prescon" is based on definition of 1 atmosphere
4343
c as 101325 Pa set by the 10th Conference Generale des Poids et
@@ -83,18 +83,18 @@ module units
8383
parameter (boltzmann=0.8314462618d0)
8484
parameter (gasconst=1.9872042586d-3)
8585
parameter (elemchg=1.602176634d-19)
86-
parameter (vacperm=8.8541878128d-12)
87-
parameter (emass=5.48579909065d-4)
86+
parameter (vacperm=8.8541878188d-12)
87+
parameter (emass=5.485799090441d-4)
8888
parameter (planck=6.62607015d-34)
8989
parameter (joule=4.1840d0)
9090
parameter (ekcal=4.1840d+2)
91-
parameter (bohr=0.529177210903d0)
91+
parameter (bohr=0.529177210544d0)
9292
parameter (hartree=627.509474063d0)
93-
parameter (evolt=27.211386245988d0)
93+
parameter (evolt=27.211386245981d0)
9494
parameter (efreq=2.194746314d+5)
9595
parameter (coulomb=332.0637133d0)
9696
parameter (elefield=1439.96455d0)
97-
parameter (debye=4.80321d0)
97+
parameter (debye=4.803206802d0)
9898
parameter (prescon=6.85684112d+4)
9999
save
100100
end

0 commit comments

Comments
 (0)