Allow skipping checks of some tracer fields#678
Conversation
The irrigation tracer field is not yet mapped correctly (see ESCOMP#675). In order to allow both irrigation and volr to be spatially-varying but to still have tracer checks for everything else, we now exclude the irrigation field from these tracer checks. (This requires a change to the share code to implement this skip.)
| if (.not. isPresentNonTracer) then | ||
| ! This is the situation for a small number of fields where we have a tracer | ||
| ! field without a corresponding non-tracer field. | ||
| if (dbug_flag > 5) then | ||
| call ESMF_LogWrite(trim(subname)//": Skipping check for <" // trim(FBName)//"%"//trim(fieldNameList(n)) // & | ||
| "> which has no corresponding non-tracer field", ESMF_LOGMSG_INFO) | ||
| end if |
There was a problem hiding this comment.
This looks like a bigger diff than it really is: The conditional has been rearranged so that this .not. isPresentNonTracer is the first block, and then the standard case is in the else. This made sense at first because there were going to be multiple skip conditions so it was going to look like:
if (.not. isPresentNonTracer) then
...
else if (variable_in_skip_list) then
...
else
! standard case, not skipped
end ifIt ended up making more sense to put the variable-in-skip-list check inside the main code branch - because it was simplest to check/set this in the wtracers_check_tracer_ratios call - but I felt like I marginally liked this conditional block arrangement better because it lends itself better to possible future changes (such as new ways to skip a variable), and I had already done testing with this code structure, so I decided to leave this change in place.
Description of changes
The irrigation tracer field is not yet mapped correctly (see #675). In order to allow both irrigation and volr to be spatially-varying but to still have tracer checks for everything else, we now exclude the irrigation field from these tracer checks.
This depends on the CESM_share changes in ESCOMP/CESM_share#85
Specific notes
Contributors other than yourself, if any:
CMEPS Issues Fixed (include github issue #):
Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial) - no: bfb
Any User Interface Changes (namelist or namelist defaults changes)? Adds water_tracers_variables_not_checked namelist item
Testing performed
Please describe the tests along with the target model and machine(s)
If possible, please also added hashes that were used in the testing
SMS_D_Ld2.f19_g17.X.green_gnu.drv-water_tracers--drv-glc_avg_frequentlyin cesm3_0_alpha09d, with share updated to share1.1.21