Skip to content

Commit 4956b46

Browse files
committed
fix: hbar value
1 parent 2cc7bd2 commit 4956b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_constants.fypp

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module stdlib_constants
4040
real(dp), parameter, public :: epsilon_0 = VACUUM_ELECTRIC_PERMITTIVITY%value !! vacuum mag. permeability
4141
real(dp), parameter, public :: h = PLANCK_CONSTANT%value !! Planck constant
4242
real(dp), parameter, public :: Planck = PLANCK_CONSTANT%value !! Planck constant
43-
real(dp), parameter, public :: hbar = PLANCK_CONSTANT%value / PI_dp !! Reduced Planck constant
43+
real(dp), parameter, public :: hbar = PLANCK_CONSTANT%value / (2.0_dp * PI_dp) !! Reduced Planck constant
4444
real(dp), parameter, public :: G = NEWTONIAN_CONSTANT_OF_GRAVITATION%value !! Newtonian constant of gravitation
4545
real(dp), parameter, public :: gravitation_constant = NEWTONIAN_CONSTANT_OF_GRAVITATION%value !! Newtonian constant of gravitation
4646
real(dp), parameter, public :: g2 = STANDARD_ACCELERATION_OF_GRAVITY%value !! Standard acceleration of gravity

0 commit comments

Comments
 (0)