Skip to content

Commit 3f8d05a

Browse files
committed
Remove references to physcons module from SCM
1 parent 95addf5 commit 3f8d05a

File tree

5 files changed

+155
-10
lines changed

5 files changed

+155
-10
lines changed

scm/src/GFS_typedefs.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
34113411
cny, gnx, gny, ak, bk, hydrostatic)
34123412

34133413
!--- modules
3414-
use physcons, only: con_rerth, con_pi, con_p0, rhowater
3414+
use scm_physical_constants, only: con_rerth, con_pi, con_p0, rhowater
34153415
use mersenne_twister, only: random_setseed, random_number
34163416
use GFS_ccpp_suite_sim_pre, only: load_ccpp_suite_sim
34173417
!

scm/src/GFS_typedefs.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10619,7 +10619,7 @@
1061910619
name = GFS_typedefs
1062010620
type = module
1062110621
dependencies_path = ../../ccpp/physics/physics
10622-
dependencies = hooks/machine.F,hooks/physcons.F90
10622+
dependencies = hooks/machine.F
1062310623
dependencies = Radiation/RRTMG/radlw_param.f,Radiation/RRTMG/radsw_param.f
1062410624
dependencies = MP/TEMPO/TEMPO/module_mp_tempo_params.F90
1062510625
dependencies = photochem/module_ozphys.F90,photochem/module_h2ophys.F90

scm/src/scm_physical_constants.F90

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module scm_physical_constants
1111
!!
1212
integer ,parameter:: con_zero =0
1313
real(kind=dp),parameter:: con_pi =3.1415926535897931
14-
14+
1515
real(kind=dp),parameter:: con_rerth =6.3712e+6
1616
real(kind=dp),parameter:: con_g =9.80665e+0
1717
real(kind=dp),parameter:: con_omega =7.2921e-5
@@ -42,8 +42,9 @@ module scm_physical_constants
4242
real(kind=dp),parameter:: con_avgd =6.0221415e23_dp
4343
real(kind=dp),parameter:: con_amd =28.9644_dp !< molecular wght of dry air (\f$g/mol\f$)
4444
real(kind=dp),parameter:: con_amw =18.0154_dp
45+
real(kind=dp),parameter:: con_amo3 =47.9982_dp !< molecular wght of o3 (\f$g/mol\f$)
4546
real(kind=dp),parameter:: karman =0.4_dp
46-
47+
4748
real(kind=dp),parameter:: cimin =0.15
4849
!> minimum rain amount
4950
real(kind=dp),parameter:: rainmin =1.e-13_dp
@@ -52,7 +53,7 @@ module scm_physical_constants
5253
real(kind=dp),parameter:: con_rhw0 =1022.0
5354
real(kind=dp),parameter:: con_sbc =5.670400e-8
5455
real(kind=dp),parameter:: con_tice =2.7120e+2
55-
56+
5657
real(kind=dp),parameter:: rhowater =1000._dp
5758
real(kind=dp),parameter:: rholakeice = 0.917e3_dp !< density of ice on lake (kg/m^3)
5859

@@ -63,10 +64,28 @@ module scm_physical_constants
6364
real(kind=dp),parameter:: con_solr_2002 = 1.3660e+3_dp !< solar constant (\f$W/m^{2}\f$)-Liu(2002)
6465
real(kind=dp),parameter:: con_solr_2008 = 1.3608e+3_dp !< solar constant (\f$W/m^{2}\f$)-nasa-sorce Tim(2008)
6566
real(kind=dp),parameter:: con_thgni = -38.15_dp !< temperature the H.G.Nuc. ice starts
66-
67+
6768
! for gfdlmp v3
69+
real(kind=dp), parameter:: con_rhoair_IFS = 1.0 ! reference air density (kg/m^3), ref: IFS
70+
real(kind=dp), parameter:: con_rhosnow = 100.0 ! density of snow (kg/m^3)
71+
real(kind=dp), parameter :: con_visd = 1.717e-5 ! dynamics viscosity of air at 0 deg C and 1000 hPa (Mason, 1971) (kg/m/s)
72+
real(kind=dp), parameter :: con_visk = 1.35e-5 ! kinematic viscosity of air at 0 deg C and 1000 hPa (Mason, 1971) (m^2/s)
73+
real(kind=dp), parameter :: con_vdifu = 2.25e-5 ! diffusivity of water vapor in air at 0 deg C and 1000 hPa (Mason, 1971) (m^2/s)
74+
real(kind=dp), parameter :: con_tcond = 2.40e-2 ! thermal conductivity of air at 0 deg C and 1000 hPa (Mason, 1971) (J/m/s/K)
75+
real(kind=dp), parameter :: con_cdg = 3.15121 ! drag coefficient of graupel (Locatelli and Hobbs, 1974)
76+
real(kind=dp), parameter :: con_cdh = 0.5 ! drag coefficient of hail (Heymsfield and Wright, 2014)
77+
real(kind=dp), parameter :: con_rhocw = 1.0e3 ! density of cloud water (kg/m^3)
78+
real(kind=dp), parameter :: con_rhoci = 9.17e2 ! density of cloud ice (kg/m^3)
79+
real(kind=dp), parameter :: con_rhocr = 1.0e3 ! density of rain (Lin et al. 1983) (kg/m^3)
80+
real(kind=dp), parameter :: con_rhocg = 4.0e2 ! density of graupel (Rutledge and Hobbs 1984) (kg/m^3)
81+
real(kind=dp), parameter :: con_rhoch = 9.17e2 ! density of hail (Lin et al. 1983) (kg/m^3)
82+
real(kind=dp), parameter :: con_qcmin = 1.0e-15 ! min value for cloud condensates (kg/kg)
83+
real(kind=dp), parameter :: con_qfmin = 1.0e-8 ! min value for sedimentation (kg/kg)
6884
real(kind=dp), parameter :: con_one = 1_dp
6985
real(kind=dp), parameter :: con_p001 = 0.001_dp
7086
real(kind=dp), parameter :: con_secinday = 86400._dp
7187

88+
! --- constants from physcons.F90 ---
89+
real(kind=dp),parameter:: con_decorr = 2.50_dp !< Decorrelation length constant (km) for iovr = 4 or 5 and idcor = 0
90+
real(kind=dp),parameter:: con_qamin = 1.e-16_dp !< Minimum aerosol concentration
7291
end module scm_physical_constants

scm/src/scm_physical_constants.meta

Lines changed: 128 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
units = kg kg-1
5454
dimensions = ()
5555
type = real
56-
kind = kind_phys
56+
kind = kind_phys
5757
[con_epsm1]
5858
standard_name = ratio_of_dry_air_to_water_vapor_gas_constants_minus_one
5959
long_name = (rd/rv) - 1
@@ -340,4 +340,130 @@
340340
units = s
341341
dimensions = ()
342342
type = real
343-
kind = kind_phys
343+
kind = kind_phys
344+
[con_amo3]
345+
standard_name = molecular_weight_of_ozone
346+
long_name = molecular weight of ozone
347+
units = g mol-1
348+
dimensions = ()
349+
type = real
350+
kind = kind_phys
351+
[con_decorr]
352+
standard_name = decorrelation_length_constant
353+
long_name = Decorrelation length constant (km) for iovr = 4 or 5 and idcor = 0
354+
units = km
355+
dimensions = ()
356+
type = real
357+
kind = kind_phys
358+
[con_qamin]
359+
standard_name = minimum_aerosol_concentration
360+
long_name = Minimum aerosol mass mixing ratio
361+
units = kg kg-1
362+
dimensions = ()
363+
type = real
364+
kind = kind_phys
365+
[con_rhoair_IFS]
366+
standard_name = density_of_air_IFS
367+
long_name = density of air IFS
368+
units = kg m-3
369+
dimensions = ()
370+
type = real
371+
kind = kind_phys
372+
[con_rhosnow]
373+
standard_name = density_of_snow
374+
long_name = density of snow
375+
units = kg m-3
376+
dimensions = ()
377+
type = real
378+
kind = kind_phys
379+
[con_visd]
380+
standard_name = dynamic_viscosity_of_air
381+
long_name = dynamic viscosity of air at 0 deg C and 1000 hPa (Mason, 1971)
382+
units = kg m-1 s-1
383+
dimensions = ()
384+
type = real
385+
kind = kind_phys
386+
[con_visk]
387+
standard_name = kinematic_viscosity_of_air
388+
long_name = kinematic viscosity of air at 0 deg C and 1000 hPa (Mason, 1971)
389+
units = m2 s-1
390+
dimensions = ()
391+
type = real
392+
kind = kind_phys
393+
[con_vdifu]
394+
standard_name = diffusivity_of_water_vapor_in_air
395+
long_name = diffusivity of water vapor in air at 0 deg C and 1000 hPa (Mason, 1971)
396+
units = m2 s-1
397+
dimensions = ()
398+
type = real
399+
kind = kind_phys
400+
[con_tcond]
401+
standard_name = thermal_conductivity_of_air
402+
long_name = thermal conductivity of air at 0 deg C and 1000 hPa (Mason, 1971)
403+
units = W m-1 K-1
404+
dimensions = ()
405+
type = real
406+
kind = kind_phys
407+
[con_cdg]
408+
standard_name = drag_coefficient_of_graupel
409+
long_name = drag coefficient of graupel (Locatelli and Hobbs, 1974)
410+
units = 1
411+
dimensions = ()
412+
type = real
413+
kind = kind_phys
414+
[con_cdh]
415+
standard_name = drag_coefficient_of_hail
416+
long_name = drag coefficient of hail (Heymsfield and Wright, 2014)
417+
units = 1
418+
dimensions = ()
419+
type = real
420+
kind = kind_phys
421+
[con_rhocw]
422+
standard_name = density_of_cloud_water
423+
long_name = density of cloud water
424+
units = kg m-3
425+
dimensions = ()
426+
type = real
427+
kind = kind_phys
428+
[con_rhoci]
429+
standard_name = density_of_cloud_ice
430+
long_name = density of cloud ice
431+
units = kg m-3
432+
dimensions = ()
433+
type = real
434+
kind = kind_phys
435+
[con_rhocr]
436+
standard_name = density_of_rain
437+
long_name = density of rain (Lin et al., 1983)
438+
units = kg m-3
439+
dimensions = ()
440+
type = real
441+
kind = kind_phys
442+
[con_rhocg]
443+
standard_name = density_of_graupel
444+
long_name = density of graupel (Rutledge and Hobbs, 1984)
445+
units = kg m-3
446+
dimensions = ()
447+
type = real
448+
kind = kind_phys
449+
[con_rhoch]
450+
standard_name = density_of_hail
451+
long_name = density of hail (Lin et al., 1983)
452+
units = kg m-3
453+
dimensions = ()
454+
type = real
455+
kind = kind_phys
456+
[con_qcmin]
457+
standard_name = minimum_mass_mixing_ratio_of_cloud_condensate
458+
long_name = minimum value for cloud condensates
459+
units = kg kg-1
460+
dimensions = ()
461+
type = real
462+
kind = kind_phys
463+
[con_qfmin]
464+
standard_name = minimum_mass_mixing_ratio_for_sedimentation
465+
long_name = minimum value for sedimentation
466+
units = kg kg-1
467+
dimensions = ()
468+
type = real
469+
kind = kind_phys

scm/src/scm_setup.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ subroutine GFS_suite_setup (Model, Statein, Stateout, Sfcprop,
294294
GFS_control_type, GFS_grid_type, &
295295
GFS_tbd_type, GFS_cldprop_type, &
296296
GFS_radtend_type, GFS_diag_type
297-
use physcons, only: pi => con_pi
297+
use scm_physical_constants, only: pi => con_pi
298298

299299

300300
!use cldwat2m_micro, only: ini_micro
@@ -406,7 +406,7 @@ end subroutine GFS_suite_setup
406406
!------------------
407407
subroutine GFS_grid_populate (Grid, xlon, xlat, area)
408408
use machine, only: kind_phys
409-
use physcons, only: pi => con_pi
409+
use scm_physical_constants, only: pi => con_pi
410410
use GFS_typedefs, only: GFS_grid_type
411411

412412
implicit none

0 commit comments

Comments
 (0)