-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates for ZM round 4 #345
base: development
Are you sure you want to change the base?
Changes from 22 commits
b34d949
d221725
e4e6b38
7e164e5
b1afafd
03890e8
18a608f
ee433ee
3c63ad1
28becd1
75cdffb
006f412
6bfe67a
dc7b04a
3adb55e
c12b6cf
30656a2
b93ab05
77ba066
6040b85
85a1096
c33eb21
3c5ac5e
395fe91
b6c814d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -491,5 +491,76 @@ | |
<long_name>graupel mass mixing ratio with respect to moist air plus all airborne condensates</long_name> | ||
<ic_file_input_names>GRAUQM cnst_GRAUQM</ic_file_input_names> | ||
</variable> | ||
|
||
<!-- cam_in Variables --> | ||
<variable local_name="landfrac" | ||
standard_name="land_area_fraction" | ||
units="fraction" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension</dimensions> | ||
<ic_file_input_names>landfrac cam_in_landfrac</ic_file_input_names> | ||
</variable> | ||
|
||
<!-- Zhang McFarlane (ZM) Variables --> | ||
<!-- Note that no_deep_pbl defaults to false, but needs to be set to true for diag_TKE or UW schemes --> | ||
<variable local_name="pblh" | ||
standard_name="atmosphere_boundary_layer_thickness" | ||
units="m" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension</dimensions> | ||
<ic_file_input_names>pblh pbuf_pblh</ic_file_input_names> | ||
</variable> | ||
<variable local_name="delt" | ||
standard_name="half_timestep_for_physics" | ||
units="s" type="real" kind="kind_phys"> | ||
</variable> | ||
<variable local_name="tpert" | ||
standard_name="convective_temperature_perturbation_due_to_pbl_eddies" | ||
units="K" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension</dimensions> | ||
<ic_file_input_names>tpert pbuf_tpert</ic_file_input_names> | ||
</variable> | ||
<variable local_name="ql" | ||
standard_name="in_cloud_water_vapor_mixing_ratio_wrt_moist_air_and_condensed_water_due_to_deep_convection" | ||
units="kg kg-1" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension vertical_layer_dimension</dimensions> | ||
<ic_file_input_names>ICWMRDP pbuf_ICWMRDP</ic_file_input_names> | ||
</variable> | ||
<variable local_name="cldfrc" | ||
standard_name="cloud_area_fraction" | ||
units="fraction" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension vertical_layer_dimension</dimensions> | ||
<initial_value>0.7_kind_phys</initial_value> | ||
<ic_file_input_names>CLD pbuf_CLD</ic_file_input_names> | ||
</variable> | ||
<variable local_name="domomtran" | ||
standard_name="flag_for_momentum_transport_by_zhang_mcfarlane_deep_convection_scheme" | ||
units="flag" type="logical" | ||
access="protected" > | ||
<initial_value>.true.</initial_value> | ||
</variable> | ||
<variable local_name="il1g" | ||
standard_name="index_of_first_column_of_gathered_deep_convection_arrays" | ||
units="index" type="integer" | ||
access="protected" > | ||
<initial_value>1</initial_value> | ||
</variable> | ||
<variable local_name="dpdry" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question about the choice of the local name There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, this name is from the original developer and comes from ESCOMP/CAM zm_conv_intr.F90. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @cacraigucar. I don't think a change would need to be made in ESCOMP/CAM nor in the scheme to rename these in SIMA registry. The "link" of these variables to CAM snapshots is through To confirm this, I renamed I am concerned that names that are too specific (in the case of ql/ Sorry for insisting on this, I'm happy to discuss further! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I lean towards @jimmielin 's approach here. These names are only used in the generated code in SIMA and the caps, so an update to atmospheric_physics wouldn't be necessary. And if there's a way to make them a little clearer so someone down the line doesn't think "hey, I need something called dpdry, i'll just use this standard name here in the registry", I think it'd be worth it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed the two names as requested |
||
standard_name="air_pressure_thickness_of_dry_air_for_deep_convection_for_gathered_convective_columns" | ||
units="hPa" type="real" kind="kind_phys" | ||
allocatable="allocatable"> | ||
<dimensions>horizontal_dimension vertical_layer_dimension</dimensions> | ||
</variable> | ||
<variable local_name="fracis" | ||
standard_name="fraction_of_water_insoluble_convectively_transported_species" | ||
units="fraction" type="real" kind="kind_phys" | ||
allocatable="allocatable" | ||
access="protected" > | ||
<dimensions>horizontal_dimension vertical_layer_dimension number_of_ccpp_constituents</dimensions> | ||
<initial_value>1</initial_value> | ||
</variable> | ||
</file> | ||
</registry> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
module ppgrid | ||
|
||
!----------------------------------------------------------------------- | ||
! | ||
! Purpose: USED ONLY FOR BACKWARDS COMPATIBILITY WITH CAM!!!! | ||
! PLEASE DELETE ONCE NO LONGER NEEDED BY "to_be_ccppized" | ||
! PHYSICS SCHEMES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
! Thanks! | ||
!----------------------------------------------------------------------- | ||
|
||
use physics_grid, only: pcols => columns_on_task | ||
use vert_coord, only: pver => pver, pverp => pverp !WILL NEED TO CHANGE THESE NAMES TO | ||
!SOMETHING ELSE IN CAM-SIMA! | ||
|
||
implicit none | ||
private | ||
save | ||
|
||
public pcols | ||
public pver | ||
public pverp | ||
|
||
end module ppgrid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I ask why the local name in SIMA is set to
ql
instead oficwmrdp
as in the snapshot? I was not totally sure thaticwmrdp
corresponds exactly toql
since there is aicwmrsh
which is the shallow convection equivalent, but I couldn't find a clear definition of theql
in the current CAM's state to be sure.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The simple answer is that that is what the initial developer (whoever that was) used it in their code. Inside zm_convr_intr.F90 which resides in ESCOMP/CAM, there is a pbuf call
call pbuf_get_field(pbuf, icwmrdp_idx, ql )
. That links the two variable names together.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed as requested