-
Notifications
You must be signed in to change notification settings - Fork 28
Fix ERS and DIMCS failures for when USE_CR_GRID is on
#357
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
Changes from all commits
56940b7
6115e3f
d959cf3
993e74e
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 |
|---|---|---|
|
|
@@ -2799,12 +2799,12 @@ subroutine set_visc_register_restarts(HI, G, GV, US, param_file, visc, restart_C | |
| call safe_alloc_ptr(visc%h_ML, isd, ied, jsd, jed) | ||
| endif | ||
|
|
||
| if (MLE_use_PBL_MLD) then | ||
| if (MLE_use_PBL_MLD .or. MLE_use_Bodner) then | ||
| call register_restart_field(visc%MLD, "MLD", .false., restart_CS, & | ||
| "Instantaneous active mixing layer depth", units="m", conversion=US%Z_to_m) | ||
| endif | ||
| if (MLE_use_PBL_MLD .or. do_brine_plume .or. use_fpmix .or. & | ||
| use_neutral_diffusion .or. use_hor_bnd_diff) then | ||
| use_neutral_diffusion .or. use_hor_bnd_diff .or. MLE_use_Bodner) then | ||
|
Collaborator
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 here. Do we need to save
Member
Author
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. Similarly, |
||
| call register_restart_field(visc%h_ML, "h_ML", .false., restart_CS, & | ||
| "Instantaneous active mixing layer thickness", & | ||
| units=get_thickness_units(GV), conversion=GV%H_to_mks) | ||
|
|
||
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.
Should this be
MLE_use_PBL_MLD .and. MLE_use_Bodner? I do not think we need to save MLD ifMLE_use_Bodner = TrueandMLE_use_PBL_MLD = False.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.
In
mixedlayer_restrat_Bodnersubroutine,BLD(MLD) andh_MLDis needed regardless ofMLE_use_PBL_MLD. Hence, the.or.clause.