-
Notifications
You must be signed in to change notification settings - Fork 142
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
History bugfixes #1163
base: cam_development
Are you sure you want to change the base?
History bugfixes #1163
Conversation
I'll just point out that the reason for setting the averaging flag to |
@adamrher could you confirm that the addfld calls I've amended represent the full set of fields that are sampled on the subcycle? |
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.
Hi @peverwhee, I found some missing addfld calls.
micro_pumas_cam.F90, marcop_driver.F90, microp_aero.F90 all look good. There are a 5 addflds you missed, in stats_init_clubb in clubb_intr.F90. I couldn't figure out how to add a review comment that deep into clubb_intr, but they start at line 5116.
microp_aero.F90 has some dependencies that have addfld calls. These are: ndrop.F90, ndrop_bam.F90, nucleate_ice_cam.F90, hetfrz_classnuc_cam.F90. All addflds in those modules need the sample_on_subcycle flag.
Lastly, the drivers in subcol_SILHS.F90 are called inside the macmic loop if use_subcol_microp=.true. Support for subcolumns is a grey area but it shouldn't be too much work (?) to add sample_on_subcycle to all the addflds in subcol_SILHS.F90.
@adamrher thanks for taking the time to check these! I've added/removed the
|
Summary
sampled_on_subcycle
argument toaddfld
. If that's true for a field, we don't override the averaging flag to "I" if nhtfrq = 1 (every timestep). This reenables subcycling averages.Mods
src/control/cam_history.F90
list_index
to optionally check for duplicates/compatibilityERROR: FLDLST: Found duplicate field(s) with different averaging flags. Place in separate fincl lists: "Q:A", "Q:I" (fincl3). "T:A", "T:I" (fincl3). "U:A", "U:I" (fincl4).
src/control/cam_history_support.F90
sampled_on_subcycle
tofield_info
objectsrc/physics/*
sampled_on_subcycle=.true.
bld/namelist_files/use_cases/sd_waccm_sulfur.xml
.lib/git-fleximod/*
closes #1149
closes #1150
closes #1166
closes #1167