*+Revise non-Boussinesq find_coupling_coef calcs#373
Merged
marshallward merged 2 commits intoNOAA-GFDL:dev/gfdlfrom Jun 8, 2023
Merged
*+Revise non-Boussinesq find_coupling_coef calcs#373marshallward merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
marshallward merged 2 commits intoNOAA-GFDL:dev/gfdlfrom
Conversation
Restructure one of the find_coupling_coef calculations to draw out the stress-magnitude terms, in preparation for future steps to reduce the dependency on the Boussinesq reference density. Using a value of VERT_FRICTION_ANSWER_DATE that is below 20230601 recovers the previous answers with non-Boussinesq test cases, but this is irrelevant for Boussinesq test cases. This updated code is mathematically equivalent to the previous expressions but it does change answers at roundoff in non-Boussinesq cases for recent answer dates. There are modifications to some comments in MOM_parameter_doc files.
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #373 +/- ##
=========================================
Coverage 38.28% 38.29%
=========================================
Files 269 269
Lines 76018 76022 +4
Branches 13982 13983 +1
=========================================
+ Hits 29107 29109 +2
- Misses 41682 41684 +2
Partials 5229 5229
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
marshallward
approved these changes
Jun 7, 2023
Member
|
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/19434 ❌ (✔️) 🟡 As expected, answers have changed in the |
dhruvbalwada
pushed a commit
to dhruvbalwada/MOM6
that referenced
this pull request
Jan 31, 2026
Updates the NUOPC cap to write the stochastic physics package's restart file in the run directory whenever using the Stochastic GM+E parameterization. When restarting, enables the stochastic physics package to read a restart file from a name/location other than the default. If the new MOM6 namelist parameter CESM_RESTFILE is True then it uses the mom6 restart filename but with .r_stoch. in place of .r.. If CESM_RESTFILE is False (default) it simply uses whatever the default restart file name is in the stochastic physics package. (Edit: This PR no longer uses the CESM_RESTFILE parameter. It just reads the restart file directly from the run directory.) A separate PR to ESCOMP/stochastic_physics updates that package to allow the restart file name to change from its default value, which was originally hard-coded. This partially addresses NOAA-GFDL#360. Changes will be needed in MOM_interface to make the whole thing work; specifically, we should always set CESM_RESTFILE = True in user_nl_mom, and when CONTINUE_RUN is true we need to modify the stochini parameter in the &nam_stochy section of input.nml to take the value .true.. This PR takes an alternate approach to NOAA-GFDL#373, which required the restart file name to be set in the stochastic physics namelist. I've closed NOAA-GFDL#373 in preference to this approach.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restructure one of the find_coupling_coef calculations to draw out the stress-magnitude terms, in preparation for future steps to reduce the dependency on the Boussinesq reference density. Using a value of VERT_FRICTION_ANSWER_DATE that is below 20230601 recovers the previous answers with non-Boussinesq test cases, but this is irrelevant for Boussinesq test cases. This updated code is mathematically equivalent to the previous expressions but it does change answers at roundoff in non-Boussinesq cases for recent answer dates. There are modifications to some comments in MOM_parameter_doc files.