Skip to content

Commit

Permalink
TST: Fix missing implicit none.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Jan 16, 2024
1 parent 94072f0 commit 03b5500
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
15 changes: 15 additions & 0 deletions test/testsuite_constants.f90
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module testsuite_constants
contains

subroutine collect_suite_constants(testsuite)
implicit none
type(unittest_type), allocatable, intent(out) :: testsuite(:)
testsuite = [&
new_unittest("ALPHA_PARTICLE_ELECTRON_MASS_RATIO", test_ALPHA_PARTICLE_ELECTRON_MASS_RATIO),&
Expand Down Expand Up @@ -43,6 +44,7 @@ subroutine collect_suite_version(testsuite)
end subroutine

subroutine test_year(error)
implicit none
type(error_type), allocatable, intent(out) :: error

integer(int32) :: value, expected
Expand All @@ -66,6 +68,7 @@ subroutine test_version(error)
end subroutine

subroutine test_ALPHA_PARTICLE_ELECTRON_MASS_RATIO(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 7294.29954142d0
Expand All @@ -75,6 +78,7 @@ subroutine test_ALPHA_PARTICLE_ELECTRON_MASS_RATIO(error)
end subroutine

subroutine test_ALPHA_PARTICLE_MASS(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 6.6446573357d-27
Expand All @@ -84,6 +88,7 @@ subroutine test_ALPHA_PARTICLE_MASS(error)
end subroutine

subroutine test_ATOMIC_MASS_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 1.66053906660d-27
Expand All @@ -93,6 +98,7 @@ subroutine test_ATOMIC_MASS_CONSTANT(error)
end subroutine

subroutine test_AVOGADRO_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 6.02214076d23
Expand All @@ -102,6 +108,7 @@ subroutine test_AVOGADRO_CONSTANT(error)
end subroutine

subroutine test_BOLTZMANN_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 1.380649d-23
Expand All @@ -111,6 +118,7 @@ subroutine test_BOLTZMANN_CONSTANT(error)
end subroutine

subroutine test_ELECTRON_VOLT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 1.602176634d-19
Expand All @@ -120,6 +128,7 @@ subroutine test_ELECTRON_VOLT(error)
end subroutine

subroutine test_ELEMENTARY_CHARGE(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 1.602176634d-19
Expand All @@ -129,6 +138,7 @@ subroutine test_ELEMENTARY_CHARGE(error)
end subroutine

subroutine test_FARADAY_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 96485.33212d0
Expand All @@ -138,6 +148,7 @@ subroutine test_FARADAY_CONSTANT(error)
end subroutine

subroutine test_MOLAR_MASS_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.99999999965d-3
Expand All @@ -147,6 +158,7 @@ subroutine test_MOLAR_MASS_CONSTANT(error)
end subroutine

subroutine test_MOLAR_VOLUME_NTP(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 22.41396954d-3
Expand All @@ -156,6 +168,7 @@ subroutine test_MOLAR_VOLUME_NTP(error)
end subroutine

subroutine test_PLANCK_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 6.62607015d-34
Expand All @@ -165,6 +178,7 @@ subroutine test_PLANCK_CONSTANT(error)
end subroutine

subroutine test_SPEED_OF_LIGHT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected
expected = 299792458.0d0
Expand All @@ -174,6 +188,7 @@ subroutine test_SPEED_OF_LIGHT(error)
end subroutine

subroutine test_STANDARD_ACCELERATION_OF_GRAVITY(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected
expected = 9.80665d0
Expand Down
15 changes: 14 additions & 1 deletion test/testsuite_uncertainties.f90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module testsuite_uncertainties
contains

subroutine collect_suite_uncertainties(testsuite)
!! Collection of tests
implicit none
type(unittest_type), allocatable, intent(out) :: testsuite(:)

testsuite = [&
Expand All @@ -31,6 +31,7 @@ subroutine collect_suite_uncertainties(testsuite)
end subroutine

subroutine test_U_ALPHA_PARTICLE_ELECTRON_MASS_RATIO(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.00000024d0
Expand All @@ -40,6 +41,7 @@ subroutine test_U_ALPHA_PARTICLE_ELECTRON_MASS_RATIO(error)
end subroutine

subroutine test_U_ALPHA_PARTICLE_MASS(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0000000020d-27
Expand All @@ -49,6 +51,7 @@ subroutine test_U_ALPHA_PARTICLE_MASS(error)
end subroutine

subroutine test_U_ATOMIC_MASS_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.00000000050d-27
Expand All @@ -58,6 +61,7 @@ subroutine test_U_ATOMIC_MASS_CONSTANT(error)
end subroutine

subroutine test_U_AVOGADRO_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -67,6 +71,7 @@ subroutine test_U_AVOGADRO_CONSTANT(error)
end subroutine

subroutine test_U_BOLTZMANN_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -76,6 +81,7 @@ subroutine test_U_BOLTZMANN_CONSTANT(error)
end subroutine

subroutine test_U_ELECTRON_VOLT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -85,6 +91,7 @@ subroutine test_U_ELECTRON_VOLT(error)
end subroutine

subroutine test_U_ELEMENTARY_CHARGE(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -94,6 +101,7 @@ subroutine test_U_ELEMENTARY_CHARGE(error)
end subroutine

subroutine test_U_FARADAY_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -103,6 +111,7 @@ subroutine test_U_FARADAY_CONSTANT(error)
end subroutine

subroutine test_U_MOLAR_MASS_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.00000000030d-3
Expand All @@ -112,6 +121,7 @@ subroutine test_U_MOLAR_MASS_CONSTANT(error)
end subroutine

subroutine test_U_MOLAR_VOLUME_NTP(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -121,6 +131,7 @@ subroutine test_U_MOLAR_VOLUME_NTP(error)
end subroutine

subroutine test_U_PLANCK_CONSTANT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected, fac
expected = 0.0d0
Expand All @@ -130,6 +141,7 @@ subroutine test_U_PLANCK_CONSTANT(error)
end subroutine

subroutine test_U_SPEED_OF_LIGHT(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected
expected = 0.0d0
Expand All @@ -139,6 +151,7 @@ subroutine test_U_SPEED_OF_LIGHT(error)
end subroutine

subroutine test_U_STANDARD_ACCELERATION_OF_GRAVITY(error)
implicit none
type(error_type), allocatable, intent(out) :: error
real(real64) :: value, expected
expected = 0.0d0
Expand Down

0 comments on commit 03b5500

Please sign in to comment.