forked from ESCOMP/CTSM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change logic to account for new allowed / disallowed behavior combos
- Weaken the consistency checks between icemask and glc_behavior: We no longer require has_virtual_columns and melt_replaced_by_ice - we now only require that we do NOT have (melt_replaced_by_ice_grc .and. .not. has_virtual_columns_grc). - Prevent users from setting the combination of glacier_region_melt_behavior = "replaced_by_ice" with glacier_region_ice_runoff_behavior = "melted". (While there is nothing fundamentally wrong with this combination, it can result in problematic, non-physical fluxes - particularly, a large positive sensible heat flux during glacial melt in regions where the icesheet is not fully dynamic and two-way-coupled; see ESCOMP#423 for details.) - Only update glacier areas and topo values where the glacier region behavior is 'virtual', because that's the only region where we are guaranteed to have all of the elevation classes we need in order to remain in sync. (Note that, for conservation purposes, it's important that we update areas in all regions where we're fully-two-way-coupled to the icesheet and we're computing SMB; this requirement is checked in check_glc2lnd_icemask.) This change is needed now that we no longer require grid cells within the ice mask to have the 'virtual' behavior. - Ensure that glc_dyn_runoff_routing is 0 wherever we're not computing SMB. This change isn't strictly necessary with the current code, because it appears that glc_dyn_runoff_routing is only used within the do_smb filter. However, this change makes the code more robust to future changes. This change is needed now that we no longer require grid cells within the ice mask to have the melt_replaced_by_ice behavior. Also fixes / adds unit tests covering these behavior changes
- Loading branch information
Showing
5 changed files
with
214 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.