@@ -205,6 +205,17 @@ subroutine physconst_readnl(nlfile)
205
205
newtmelt = user_defined_tmelt /= shr_const_tkfrz .and. user_defined_tmelt /= UNSET_NAMELIST
206
206
newomega = user_defined_omega /= shr_const_omega .and. user_defined_omega /= UNSET_NAMELIST
207
207
208
+ ! Populate the new constants into module after mpi_bcast
209
+ gravit = user_defined_gravit
210
+ sday = user_defined_sday
211
+ mwh2o = user_defined_mwh2o
212
+ cpwv = user_defined_cpwv
213
+ mwdry = user_defined_mwdry
214
+ cpair = user_defined_cpair
215
+ rearth = user_defined_rearth
216
+ tmelt = user_defined_tmelt
217
+ omega = user_defined_omega
218
+
208
219
if (newg .or. newsday .or. newmwh2o .or. newcpwv .or. newmwdry .or. &
209
220
newrearth .or. newtmelt .or. newomega) then
210
221
if (masterproc) then
@@ -214,52 +225,44 @@ subroutine physconst_readnl(nlfile)
214
225
write (iulog, * ) bline
215
226
write (iulog, * ) ' *** Physical Constant Old Value New Value ***'
216
227
if (newg) then
217
- gravit = user_defined_gravit
218
228
field = ' GRAVIT'
219
229
write (iulog, 2000 ) field, shr_const_g, gravit
220
230
end if
221
231
if (newsday) then
222
- sday = user_defined_sday
223
232
field = ' SDAY'
224
233
write (iulog, 2000 ) field, shr_const_sday, sday
225
234
end if
226
235
if (newmwh2o) then
227
- mwh2o = user_defined_mwh2o
228
236
field = ' MWH20'
229
237
write (iulog, 2000 ) field, shr_const_mwwv, mwh2o
230
238
end if
231
239
if (newcpwv) then
232
- cpwv = user_defined_cpwv
233
240
field = ' CPWV'
234
241
write (iulog, 2000 ) field, shr_const_cpwv, cpwv
235
242
end if
236
243
if (newmwdry) then
237
- mwdry = user_defined_mwdry
238
244
field = ' MWDRY'
239
245
write (iulog, 2000 ) field, shr_const_mwdair, mwdry
240
246
end if
241
247
if (newcpair) then
242
- cpair = user_defined_cpair
243
248
field = ' CPAIR'
244
249
write (iulog, 2000 ) field, shr_const_cpdair, cpair
245
250
end if
246
251
if (newrearth) then
247
- rearth = user_defined_rearth
248
252
field = ' REARTH'
249
253
write (iulog, 2000 ) field, shr_const_rearth, rearth
250
254
end if
251
255
if (newtmelt) then
252
- tmelt = user_defined_tmelt
253
256
field = ' TMELT'
254
257
write (iulog, 2000 ) field, shr_const_tkfrz, tmelt
255
258
end if
256
259
if (newomega) then
257
- omega = user_defined_omega
258
260
field = ' OMEGA'
259
261
write (iulog, 2000 ) field, shr_const_omega, omega
260
262
end if
261
263
write (iulog,* ) banner
262
264
end if
265
+
263
266
rga = 1._kind_phys / gravit
264
267
rearth_recip = 1._kind_phys / rearth
265
268
if (.not. newomega) then
0 commit comments