@@ -57,103 +57,103 @@ subroutine collect_constants(testsuite)
57
57
58
58
subroutine test_year (error )
59
59
type (error_type), allocatable , intent (out ) :: error
60
- call check(error, 2022 - YEAR, 0 )
60
+ call check(error, YEAR, 2022 )
61
61
if (allocated (error)) return
62
62
end subroutine
63
63
64
64
subroutine test_ALPHA_PARTICLE_ELECTRON_MASS_RATIO (error )
65
65
type (error_type), allocatable , intent (out ) :: error
66
- call check(error, 7294.29954171_dp - ALPHA_PARTICLE_ELECTRON_MASS_RATIO% to_real(1.0_dp ), 0.0_dp )
66
+ call check(error, ALPHA_PARTICLE_ELECTRON_MASS_RATIO% to_real(1.0_dp ), 7294.29954171_dp )
67
67
if (allocated (error)) return
68
68
end subroutine
69
69
70
70
subroutine test_ALPHA_PARTICLE_MASS (error )
71
71
type (error_type), allocatable , intent (out ) :: error
72
- call check(error, 6.6446573450d-27 - ALPHA_PARTICLE_MASS% to_real(1.0_dp ), 0.0_dp )
72
+ call check(error, ALPHA_PARTICLE_MASS% to_real(1.0_dp ), 6.6446573450d-27 )
73
73
if (allocated (error)) return
74
74
end subroutine
75
75
76
76
subroutine test_ATOMIC_MASS_CONSTANT (error )
77
77
type (error_type), allocatable , intent (out ) :: error
78
- call check(error, 1.66053906892d-27 - ATOMIC_MASS_CONSTANT% to_real(1.0_dp ), 0.0_dp )
78
+ call check(error, ATOMIC_MASS_CONSTANT% to_real(1.0_dp ), 1.66053906892d-27 )
79
79
if (allocated (error)) return
80
80
end subroutine
81
81
82
82
subroutine test_AVOGADRO_CONSTANT (error )
83
83
type (error_type), allocatable , intent (out ) :: error
84
- call check(error, 6.02214076d23 - AVOGADRO_CONSTANT% to_real(1.0_dp ), 0.0_dp )
84
+ call check(error, AVOGADRO_CONSTANT% to_real(1.0_dp ), 6.02214076d23 )
85
85
if (allocated (error)) return
86
86
end subroutine
87
87
88
88
subroutine test_BOLTZMANN_CONSTANT (error )
89
89
type (error_type), allocatable , intent (out ) :: error
90
- call check(error, 1.380649d-23 - BOLTZMANN_CONSTANT% to_real(1.0_dp ), 0.0_dp )
90
+ call check(error, BOLTZMANN_CONSTANT% to_real(1.0_dp ), 1.380649d-23 )
91
91
if (allocated (error)) return
92
92
end subroutine
93
93
94
94
subroutine test_ELECTRON_VOLT (error )
95
95
type (error_type), allocatable , intent (out ) :: error
96
- call check(error, 1.602176634d-19 - ELECTRON_VOLT% to_real(1.0_dp ), 0.0_dp )
96
+ call check(error, ELECTRON_VOLT% to_real(1.0_dp ), 1.602176634d-19 )
97
97
if (allocated (error)) return
98
98
end subroutine
99
99
100
100
subroutine test_ELEMENTARY_CHARGE (error )
101
101
type (error_type), allocatable , intent (out ) :: error
102
- call check(error, 1.602176634d-19 - ELEMENTARY_CHARGE% to_real(1.0_dp ), 0.0_dp )
102
+ call check(error, ELEMENTARY_CHARGE% to_real(1.0_dp ), 1.602176634d-19 )
103
103
if (allocated (error)) return
104
104
end subroutine
105
105
106
106
subroutine test_FARADAY_CONSTANT (error )
107
107
type (error_type), allocatable , intent (out ) :: error
108
- call check(error, 96485.33212d0 - FARADAY_CONSTANT% to_real(1.0_dp ), 0.0_dp )
108
+ call check(error, FARADAY_CONSTANT% to_real(1.0_dp ), 96485.33212d0 )
109
109
if (allocated (error)) return
110
110
end subroutine
111
111
112
112
subroutine test_MOLAR_MASS_CONSTANT (error )
113
113
type (error_type), allocatable , intent (out ) :: error
114
- call check(error, 1.00000000105d-3 - MOLAR_MASS_CONSTANT% to_real(1.0_dp ), 0.0_dp )
114
+ call check(error, MOLAR_MASS_CONSTANT% to_real(1.0_dp ), 1.00000000105d-3 )
115
115
if (allocated (error)) return
116
116
end subroutine
117
117
118
118
subroutine test_MOLAR_VOLUME_NTP (error )
119
119
type (error_type), allocatable , intent (out ) :: error
120
- call check(error, 22.41396954d-3 - MOLAR_VOLUME_OF_IDEAL_GAS_273_15_K_101_325_KPA% to_real(1.0_dp ), 0.0_dp )
120
+ call check(error, MOLAR_VOLUME_OF_IDEAL_GAS_273_15_K_101_325_KPA% to_real(1.0_dp ), 22.41396954d-3 )
121
121
if (allocated (error)) return
122
122
end subroutine
123
123
124
124
subroutine test_PLANCK_CONSTANT (error )
125
125
type (error_type), allocatable , intent (out ) :: error
126
- call check(error, 6.62607015d-34 - PLANCK_CONSTANT% to_real(1.0_dp ), 0.0_dp )
126
+ call check(error, PLANCK_CONSTANT% to_real(1.0_dp ), 6.62607015d-34 )
127
127
if (allocated (error)) return
128
128
end subroutine
129
129
130
130
subroutine test_SPEED_OF_LIGHT (error )
131
131
type (error_type), allocatable , intent (out ) :: error
132
- call check(error, 299792458.0d0 - SPEED_OF_LIGHT_IN_VACUUM% to_real(1.0_dp ), 0.0_dp )
132
+ call check(error, SPEED_OF_LIGHT_IN_VACUUM% to_real(1.0_dp ), 299792458.0d0 )
133
133
if (allocated (error)) return
134
134
end subroutine
135
135
136
136
subroutine test_STANDARD_ACCELERATION_OF_GRAVITY (error )
137
137
type (error_type), allocatable , intent (out ) :: error
138
- call check(error, 9.80665d0 - STANDARD_ACCELERATION_OF_GRAVITY% to_real(1.0_dp ), 0.0_dp )
138
+ call check(error, STANDARD_ACCELERATION_OF_GRAVITY% to_real(1.0_dp ), 9.80665d0 )
139
139
if (allocated (error)) return
140
140
end subroutine
141
141
142
142
subroutine test_U_ALPHA_PARTICLE_ELECTRON_MASS_RATIO (error )
143
143
type (error_type), allocatable , intent (out ) :: error
144
- call check(error, 0.00000017d0 - ALPHA_PARTICLE_ELECTRON_MASS_RATIO% to_real(1.0_dp , uncertainty= .true. ), 0.0_dp )
144
+ call check(error, ALPHA_PARTICLE_ELECTRON_MASS_RATIO% to_real(1.0_dp , uncertainty= .true. ), 0.00000017d0 )
145
145
if (allocated (error)) return
146
146
end subroutine
147
147
148
148
subroutine test_U_ALPHA_PARTICLE_MASS (error )
149
149
type (error_type), allocatable , intent (out ) :: error
150
- call check(error, 0.0000000021d-27 - ALPHA_PARTICLE_MASS% to_real(1.0_dp , uncertainty= .true. ), 0.0_dp )
150
+ call check(error, ALPHA_PARTICLE_MASS% to_real(1.0_dp , uncertainty= .true. ), 0.0000000021d-27 )
151
151
if (allocated (error)) return
152
152
end subroutine
153
153
154
154
subroutine test_U_ATOMIC_MASS_CONSTANT (error )
155
155
type (error_type), allocatable , intent (out ) :: error
156
- call check(error, 0.00000000052d-27 - ATOMIC_MASS_CONSTANT% to_real(1.0_dp , uncertainty= .true. ), 0.0_dp )
156
+ call check(error, ATOMIC_MASS_CONSTANT% to_real(1.0_dp , uncertainty= .true. ), 0.00000000052d-27 )
157
157
if (allocated (error)) return
158
158
end subroutine
159
159
@@ -189,7 +189,7 @@ subroutine test_U_FARADAY_CONSTANT(error)
189
189
190
190
subroutine test_U_MOLAR_MASS_CONSTANT (error )
191
191
type (error_type), allocatable , intent (out ) :: error
192
- call check(error, 0.00000000031d-3 - MOLAR_MASS_CONSTANT% to_real(1.0_dp , uncertainty= .true. ), 0.0_dp )
192
+ call check(error, MOLAR_MASS_CONSTANT% to_real(1.0_dp , uncertainty= .true. ), 0.00000000031d-3 )
193
193
if (allocated (error)) return
194
194
end subroutine
195
195
0 commit comments