Skip to content
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

add metadata for orbital parameters in cam_control_mod #325

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/control/cam_control_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ module cam_control_mod
logical, protected :: branch_run ! branch from a previous run; requires a restart file
logical, protected :: post_assim ! We are resuming after a pause

logical, protected :: aqua_planet ! Flag to run model in "aqua planet" mode
logical, protected :: brnch_retain_casename ! true => branch run may use same caseid as
! the run being branched from

!> \section arg_table_cam_control_mod Argument Table
!! \htmlinclude arg_table_cam_control_mod.html
logical, protected :: aqua_planet ! Flag to run model in "aqua planet" mode
real(r8), protected :: eccen ! Earth's eccentricity factor (unitless) (typically 0 to 0.1)
real(r8), protected :: obliqr ! Earth's obliquity in radians
real(r8), protected :: lambm0 ! Mean longitude of perihelion at the
Expand Down
32 changes: 32 additions & 0 deletions src/control/cam_control_mod.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[ccpp-table-properties]
name = cam_control_mod
type = module

[ccpp-arg-table]
name = cam_control_mod
type = module
Comment on lines +6 to +7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you go ahead and add aqua_planet and brnch_retain_casename to the module level variables with standard names as well right now? Just thinking ahead about how when these are needed by a physics package, they will be available.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the aqua planet flag. I don't currently see why the schemes would need to know the retain casename logical, but we can always add it if/when that comes up!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The retain casename is currently used in the NUOPC cap interface in CAM. When @nusbaume does his review, perhaps he can weigh in on this.

[ aqua_planet ]
standard_name = do_aqua_planet
units = 1
type = logical
dimensions = ()
[ eccen ]
standard_name = eccentricity_factor
units = 1
type = real | kind = r8
dimensions = ()
[ obliqr ]
standard_name = obliquity
units = radians
type = real | kind = r8
dimensions = ()
[ lambm0 ]
standard_name = mean_longitude_of_perihelion_at_vernal_equinox
units = radians
type = real | kind = r8
dimensions = ()
[ mvelpp ]
standard_name = moving_vernal_equinox_longitude_perihelion_plus_pi
units = radians
type = real | kind = r8
dimensions = ()
1 change: 1 addition & 0 deletions src/data/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!-- CAM-SIMA Host model meta files -->
<!-- Meta-files with DDTs must be listed first -->
<metadata_file>$SRCROOT/src/utils/spmd_utils.meta</metadata_file>
<metadata_file>$SRCROOT/src/control/cam_control_mod.meta</metadata_file>
<metadata_file>$SRCROOT/src/control/cam_logfile.meta</metadata_file>
<metadata_file>$SRCROOT/src/control/camsrfexch.meta</metadata_file>
<metadata_file>$SRCROOT/src/control/runtime_obj.meta</metadata_file>
Expand Down