Skip to content
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

+Fixed rare issue with MOM_geothermal and cleanup #1450

Merged
merged 3 commits into from
Aug 4, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Added a test to avoid attempting to deallocate the geothermal heating field if
it is not allocated, and changed the geo_heat element of geothermal_CS from a
pointer into an allocatable array. Also clarified the comments describing
several of the elements of geothermal_CS, and added a test to avoid logging the
value of GEOTHERMAL_DRHO_DT_INPLACE when the model is not in layered-mode and
this parameter is unused. This PR addresses MOM6 issue #1449. All answers are
bitwise identical in all cases that worked before, but there are fewer entries
in some ALE-mode MOM_parameter_doc files.

  Added a test to avoid attempting to deallocate the geothermal heating field if
it is not allocated, and changed the geo_heat element of geothermal_CS from a
pointer into an allocatable array.  Also clarified the comments describing
several of the elements of geothermal_CS, and added a test to avoid logging the
value of GEOTHERMAL_DRHO_DT_INPLACE when the model is not in layered-mode and
this parameter is unused.  This PR addresses MOM6 issue mom-ocean#1449.  All answers are
bitwise identical in all cases that worked before, but there are fewer entries
in some ALE-mode MOM_parameter_doc files.
@Hallberg-NOAA Hallberg-NOAA linked an issue Jul 21, 2021 that may be closed by this pull request
@marshallward
Copy link
Collaborator

@marshallward
Copy link
Collaborator

marshallward commented Aug 1, 2021

@marshallward marshallward merged commit 49aa47d into mom-ocean:dev/gfdl Aug 4, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the geothermal_cleanup branch November 18, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geothermal fails if enabled with GEOTHERMAL_SCALE = 0
2 participants