-
Notifications
You must be signed in to change notification settings - Fork 235
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
ALE crash without thermodynamics #93
Comments
Thanks @angus-g. This is a case of options colliding with each other. I will put conditionals around the three code points you listed to avoid segv's. Running in general coordinates without temperature/salinity is ill-defined - not using T/S really only makes sense for the stacked shallow equation mode in which layer density is prescribed and time-invariant. In any other mode (whether diabatic or not) the density is determined by an equation of state. Bob had a "buoyancy" mode in HIM and GOLD that was basically a single constituent fluid which we haven't thought about providing in general coordinates. Is that what you were looking for? Notes for my own sake:
|
- As reported by @angus-g in #93, USE_ALE used to happily run though remapping and use of thermodynamics variables (tv%) even if USE_EOS was False. - Checks added in - MOM_PressureForce_analytic_FV.F90 - MOM_remapping.F90 now checks that T/S are associated before remapping - MOM.F90, we conditionally add T/S to the group halo updates for ALE - Close #93. - No answer changes.
Adding the NUOPC cap
Added 4 new diagnostics to comply with CMOR requirements for units and how the diagnostics are calculated. Because the suggested CMOR names were already in use, they have been added with _CMOR appended to their names. The four new diagnostics in question are "siconc_CMOR", "sivol_CMOR", "sisnconc_CMOR" and "sitemptop_CMOR", and of course there are new entries in the SIS.available_diags files. This PR closes SIS2 issues mom-ocean#91, mom-ocean#92, and mom-ocean#93. In addition by making the axes in the registration call for "RDG_FRAC" consistent with the dimensionality of the diagnostic that is written out, this PR might also have addressed SIS2 issue mom-ocean#138. The new diagnostics have been visually confirmed to be credible, and all solutions are bitwise identical.
If you run with ALE set to regrid (onto say, the z* coordinate), but with
ENABLE_THERMODYNAMICS = False
, a few crashes occur where it is assumed that temperature and salinity are accessible as a consequence of having ALE enabled:The text was updated successfully, but these errors were encountered: