Skip to content

Commit 5436561

Browse files
committed
First round of review changes
1 parent b8fec30 commit 5436561

14 files changed

Lines changed: 20 additions & 106 deletions

schemes/microp_aero/ccpp/hetfrz_classnuc_stub.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
!
33
! This scheme exists to read the use_hetfrz_classnuc namelist flag and expose it
44
! via its CCPP standard name so downstream schemes (e.g. nucleate_ice_ccpp,
5-
! eventually PUMAS) can see the flag. It performs no heterogeneous-freezing
5+
! PUMAS) can see the flag. It performs no heterogeneous-freezing
66
! computation -- the real hetfrz_classnuc_ccpp is not yet ported to CAM-SIMA.
77
!
88
! Safe to use with use_hetfrz_classnuc=.true. for snapshot-testing flows where

schemes/microp_aero/ccpp/hetfrz_classnuc_stub_namelist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<desc>
8888
Switch to turn on heterogeneous freezing by classical nucleation theory.
8989
Currently a stub in CAM-SIMA: the flag is propagated to downstream schemes
90-
(nucleate_ice_ccpp, eventually PUMAS) but no hetfrz computation is performed.
90+
(nucleate_ice_ccpp, PUMAS) but no hetfrz computation is performed.
9191
Setting this to TRUE is supported for snapshot-testing flows where the flag
9292
must match CAM; a warning is emitted at init time.
9393
Default: FALSE; TRUE for CAM6 and CAM7.

schemes/pumas/micro_pumas_ccpp_dimensions_post.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
kind = pumas_r8
160160
intent = in
161161
[numice_tend]
162-
standard_name = tendency_of_mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water
162+
standard_name = tendency_of_mass_number_concentration_of_cloud_ice_water_crystals_in_moist_air_and_condensed_water
163163
long_name = mass number concentration of cloud ice wrt moist air and condensed water
164164
units = kg-1 s-1
165165
dimensions = (horizontal_loop_extent, vertical_layer_dimension)

schemes/pumas/micro_pumas_ccpp_dimensions_pre.F90

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module micro_pumas_ccpp_dimensions_pre
22

3-
use pumas_kinds, only: pumas_r8=>kind_r8
4-
use ccpp_kinds, only: kind_phys
5-
63
implicit none
74
private
85

@@ -31,7 +28,7 @@ subroutine micro_pumas_ccpp_dimensions_pre_init( ncol, nlev, nlevp1,
3128

3229
!CCPP error handling:
3330
character(len=*), intent(out) :: errmsg
34-
integer, intent(out) :: errcode
31+
integer, intent(out) :: errcode
3532

3633
!Initialize error message and error code:
3734
errmsg = ''
@@ -46,9 +43,8 @@ end subroutine micro_pumas_ccpp_dimensions_pre_init
4643

4744
!> \section arg_table_micro_pumas_ccpp_dimensions_pre_run Argument Table
4845
!! \htmlinclude micro_pumas_ccpp_dimensions_pre_run.html
49-
subroutine micro_pumas_ccpp_dimensions_pre_run(ncol, nlev, nlevp1, &
46+
subroutine micro_pumas_ccpp_dimensions_pre_run(ncol, &
5047
trop_cloud_top_lev, &
51-
micro_ncol, micro_nlev, micro_nlevp1, micro_dust_nbins,&
5248
airT_in, pumas_airT, airq_in, pumas_airq, &
5349
cldliq_in, pumas_cldliq, &
5450
cldice_in, pumas_cldice, &
@@ -82,19 +78,14 @@ subroutine micro_pumas_ccpp_dimensions_pre_run(ncol, nlev, nlevp1,
8278
frzdep_in, pumas_frzdep, &
8379
errmsg, errcode)
8480

81+
use pumas_kinds, only: pumas_r8=>kind_r8
82+
use ccpp_kinds, only: kind_phys
83+
8584
!Host model dimensions/parameters:
8685
integer, intent(in) :: ncol
87-
integer, intent(in) :: nlev
88-
integer, intent(in) :: nlevp1
8986
integer, intent(in) :: trop_cloud_top_lev !Index of the top model level for which
9087
!cloud physics is applied (1 to nlev)
9188

92-
!PUMAS dimensions/parameters:
93-
integer, intent(in) :: micro_ncol !Number of horizontal microphysics columns (count)
94-
integer, intent(in) :: micro_nlev !Number of microphysics vertical layers (count)
95-
integer, intent(in) :: micro_nlevp1 !Number of microphysics vertical interfaces (count)
96-
integer, intent(in) :: micro_dust_nbins !Number of dust bins
97-
9889
! Air temperature (K)
9990
real(kind_phys), intent(in) :: airT_in(:, :)
10091
real(pumas_r8), intent(out) :: pumas_airT(:, :)

schemes/pumas/micro_pumas_ccpp_dimensions_pre.meta

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -88,57 +88,12 @@
8888
dimensions = ()
8989
type = integer
9090
intent = in
91-
[nlev]
92-
standard_name = vertical_layer_dimension
93-
long_name = number of vertical levels
94-
units = count
95-
dimensions = ()
96-
type = integer
97-
intent = in
98-
[nlevp1]
99-
standard_name = vertical_interface_dimension
100-
long_name = number of vertical levels plus one
101-
units = count
102-
dimensions = ()
103-
type = integer
104-
intent = in
10591
[trop_cloud_top_lev]
10692
standard_name = vertical_layer_index_of_troposphere_cloud_physics_top
10793
units = index
10894
type = integer
10995
dimensions = ()
11096
intent = in
111-
[micro_ncol]
112-
#Equivalent to "horizontal_loop_extent" unless subcolumns is enabled
113-
standard_name = microphysics_horizontal_loop_extent
114-
long_name = number of horizontal columns used by microphysics
115-
units = count
116-
dimensions = ()
117-
type = integer
118-
intent = in
119-
[micro_nlev]
120-
#Vertical levels from surface to highest level with tropospheric clouds
121-
standard_name = microphysics_vertical_layer_dimension
122-
long_name = vertical layer dimension used by microphysics
123-
units = count
124-
dimensions = ()
125-
type = integer
126-
intent = in
127-
[micro_nlevp1]
128-
#Vertical interfaces from surface to highest level with tropospheric clouds
129-
standard_name = microphysics_vertical_interface_dimension
130-
long_name = vertical interface dimension used by microphysics
131-
units = count
132-
dimensions = ()
133-
type = integer
134-
intent = in
135-
[micro_dust_nbins]
136-
standard_name = dust_size_bin_dimension
137-
long_name = number of dust bins
138-
units = count
139-
dimensions = ()
140-
type = integer
141-
intent = in
14297
[airT_in]
14398
standard_name = air_temperature
14499
long_name = air temperature of new state
@@ -228,7 +183,7 @@
228183
intent = out
229184
[numliq_in]
230185
standard_name = mass_number_concentration_of_cloud_liquid_water_droplets_in_moist_air_and_condensed_water
231-
long_name = mass number concentration of cloud liquid wrt moist air and condensed water of new state
186+
long_name = mass number concentration of cloud liquid mixing ratio wrt moist air and condensed water of new state
232187
units = kg-1
233188
dimensions = (horizontal_loop_extent, vertical_layer_dimension)
234189
type = real
@@ -244,7 +199,7 @@
244199
kind = pumas_r8
245200
intent = out
246201
[numice_in]
247-
standard_name = mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water
202+
standard_name = mass_number_concentration_of_cloud_ice_water_crystals_in_moist_air_and_condensed_water
248203
long_name = mass number concentration of cloud ice wrt moist air and condensed water of new state
249204
units = kg-1
250205
dimensions = (horizontal_loop_extent, vertical_layer_dimension)

schemes/pumas/pumas_post_main.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
intent = in
8080
advected = true
8181
[numice]
82-
standard_name = mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water
82+
standard_name = mass_number_concentration_of_cloud_ice_water_crystals_in_moist_air_and_condensed_water
8383
long_name = mass number concentration of cloud ice wrt moist air and condensed water
8484
units = kg-1
8585
dimensions = (horizontal_loop_extent, vertical_layer_dimension)

schemes/pumas/pumas_pre_main.F90

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55

66
module pumas_pre_main
77

8-
use ccpp_kinds, only: kind_phys
9-
108
implicit none
119

1210
private
1311

1412
public :: pumas_pre_main_init
15-
public :: pumas_pre_main_timestep_init
1613

1714
contains
1815

@@ -21,6 +18,8 @@ module pumas_pre_main
2118
subroutine pumas_pre_main_init(do_clubb_sgs, remove_supersat, spat_vary_accre_enhan_in, errmsg, errcode)
2219

2320

21+
use ccpp_kinds, only: kind_phys
22+
2423
logical, intent(in) :: do_clubb_sgs
2524
real(kind_phys), dimension (:,:) , intent(out) :: spat_vary_accre_enhan_in
2625
logical, intent(out) :: remove_supersat
@@ -42,17 +41,5 @@ subroutine pumas_pre_main_init(do_clubb_sgs, remove_supersat, spat_vary_accre_en
4241

4342
end subroutine pumas_pre_main_init
4443

45-
!> \section arg_table_pumas_pre_main_timestep_init Argument Table
46-
!! \htmlinclude pumas_pre_main_timestep_init.html
47-
subroutine pumas_pre_main_timestep_init( errmsg, errcode)
48-
49-
50-
character(len=*), intent(out) :: errmsg
51-
integer, intent(out) :: errcode
52-
53-
errmsg = ' '
54-
errcode = 0
55-
56-
end subroutine pumas_pre_main_timestep_init
57-
5844
end module pumas_pre_main
45+

schemes/pumas/pumas_pre_main.meta

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,6 @@
4242
dimensions = ()
4343
intent = out
4444

45-
[ccpp-arg-table]
46-
name = pumas_pre_main_timestep_init
47-
type = scheme
48-
[ errmsg ]
49-
standard_name = ccpp_error_message
50-
long_name = Error message for error handling in CCPP
51-
units = none
52-
type = character | kind = len=*
53-
dimensions = ()
54-
intent = out
55-
[ errcode ]
56-
standard_name = ccpp_error_code
57-
long_name = Error flag for error handling in CCPP
58-
units = 1
59-
type = integer
60-
dimensions = ()
61-
intent = out
62-
6345
#####################
6446
#End of metadata file
6547
#####################

schemes/pumas/pumas_pre_main_namelist.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
<type>char*256</type>
348348
<desc>emulated stochastic collection filename for quantiles</desc>
349349
<values>
350-
<value>"${SRCROOT}2/src/atmos_phys/schemes/pumas/pumas/KBARF_tau_kernel.dat"</value>
350+
<value>"${SRCROOT}/src/atmos_phys/schemes/pumas/pumas/KBARF_tau_kernel.dat"</value>
351351
</values>
352352
</entry>
353353

@@ -543,7 +543,6 @@
543543
<desc>droplet concentration constant for MG microphysics</desc>
544544
<values>
545545
<value>50000000.</value>
546-
<value micro_mg_version="2">8</value>
547546
</values>
548547
</entry>
549548

schemes/utilities/clamp_number_concentrations.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module clamp_number_concentrations
3333
character(len=*), parameter :: std_names(num_species) = &
3434
[character(len=128) :: 'mass_number_concentration_of_cloud_liquid_water_droplets_in_moist_air_and_condensed_water', &
3535
'mass_number_concentration_of_rain_drops_in_moist_air_and_condensed_water', &
36-
'mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water', &
36+
'mass_number_concentration_of_cloud_ice_water_crystals_in_moist_air_and_condensed_water', &
3737
'mass_number_concentration_of_snow_crystals_in_moist_air_and_condensed_water']
3838

3939
contains

0 commit comments

Comments
 (0)