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

*+Use runtime params in adjustment_initialization #291

Merged

Conversation

Hallberg-NOAA
Copy link
Member

This commit replaces previously hard-coded values for dRho_dS and the temperature range for the sloshing test case with values read in from the existing runtime parameters DRHO_DS and the previously unused parameter T_RANGE that was already being read in for this configuration. The default value for dRho_dS from the EOS code (0.8 kg m-3 ppt-1) does not match hard coded value here (1 kg m-3 ppt-1), but in the existing tests using adjustment_initialization DRHO_DS was being explicitly set to the hard-coded value here, so I have chosen to reuse the same parameter with the same default value as is used elsewhere even though it could change answers in cases that do not set DRHO_DS consistently with the previous hard coded parameter. In addition, the previous default value for T_RANGE read into this module (0 degC) did not match the hard-coded range that was being used (1 degC). In this case I have chosen to change the default value for T_RANGE in this module so that by default this will reproduce the previous answers. As a result, there will be changes in the MOM_parameter doc all files for cases (like adjustment2d) that use the adjustment_initialization routines. This commit will change answers in some cases, but in the existing adjustment2d test cases in the MOM6-examples test suite, the answers are bitwise identical without any changes to the existing input parameter files.

  This commit replaces previously hard-coded values for dRho_dS and the
temperature range for the sloshing test case with values read in from the
existing runtime parameters DRHO_DS and the previously unused parameter T_RANGE
that was already being read in for this configuration.  The default value for
dRho_dS from the EOS code (0.8 kg m-3 ppt-1) does not match hard coded value
here (1 kg m-3 ppt-1), but in the existing tests using adjustment_initialization
DRHO_DS was being explicitly set to the hard-coded value here, so I have chosen
to reuse the same parameter with the same default value as is used elsewhere
even though it could change answers in cases that do not set DRHO_DS
consistently with the previous hard coded parameter.  In addition, the previous
default value for T_RANGE read into this module (0 degC) did not match the
hard-coded range that was being used (1 degC).  In this case I have chosen to
change the default value for T_RANGE in this module so that by default this will
reproduce the previous answers.  As a result, there will be changes in the
MOM_parameter doc all files for cases (like adjustment2d) that use the
adjustment_initialization routines.  This commit will change answers in some
cases, but in the existing adjustment2d test cases in the MOM6-examples test
suite, the answers are bitwise identical without any changes to the existing
input parameter files.
@Hallberg-NOAA Hallberg-NOAA added documentation Improvements or additions to documentation answer-changing A change in results (actual or potential) Parameter change Input parameter changes (addition, removal, or description) labels Dec 23, 2022
@codecov
Copy link

codecov bot commented Dec 23, 2022

Codecov Report

Merging #291 (c14a5b4) into dev/gfdl (d7d1351) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           dev/gfdl     #291   +/-   ##
=========================================
  Coverage     37.07%   37.07%           
=========================================
  Files           263      263           
  Lines         73666    73666           
  Branches      13727    13727           
=========================================
+ Hits          27310    27311    +1     
+ Misses        41317    41315    -2     
- Partials       5039     5040    +1     
Impacted Files Coverage Δ
src/user/adjustment_initialization.F90 0.00% <0.00%> (ø)
src/framework/MOM_document.F90 73.36% <0.00%> (+0.21%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward marshallward requested a review from adcroft January 4, 2023 17:02
Copy link
Member

@adcroft adcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/17898 ✔️ 🟡

@marshallward marshallward merged commit ca72fcc into NOAA-GFDL:dev/gfdl Jan 7, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the explicit_adjustment_init_params branch February 2, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-changing A change in results (actual or potential) documentation Improvements or additions to documentation Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants