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

+Add 7 runtime parameters for user init modules #292

Merged
merged 5 commits into from
Jan 5, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This PR adds 7 new runtime parameters to replace hard-coded dimensional parameters in 4 user initialization modules (benchmark_initialization, DOME2d_initialization, sloshing_initialization and DOME_initialization). The new runtime parameters that were added are BENCHMARK_T_LIGHT, INITIAL_SSS, DOME2D_T_BAY, DOME2D_EAST_SPONGE_S_RANGE, INITIAL_SSS, SLOSHING_T_PERT and DOME_T_LIGHT. By default all answers are bitwise identical, but there are new entries in the MOM_parameter_doc.all files for configurations using the four impacted modules.

The commits in this PR include:

  • 157b8068e +Add runtime parameters for DOME_initialization
  • 5831dc6f1 +Add runtime parameters for sloshing_initialization
  • dd7c787a1 +Add runtime parameters for DOME2d_initialization
  • fcfa2f2bc +Add runtime parameters for benchmark_initialization

  Added the new runtime parameter BENCHMARK_T_LIGHT and reuse the existing
parameter S_REF to specify the previously hard-coded dimensional parameters in
the benchmark_initialization module.  By default all answers are bitwise
identical, but there are new entries in the MOM_parameter_doc.all files for the
benchmark test case.
  Added the new runtime parameters INITIAL_SSS, DOME2D_T_BAY and
DOME2D_EAST_SPONGE_S_RANGE to specify the previously hard-coded dimensional
parameters in the DOME2d_initialization module.  By default all answers are
bitwise identical, but there are new entries in the MOM_parameter_doc.all
files for the flow_downslope and similar test cases.
  Added the new runtime parameters INITIAL_SSS and SLOSHING_T_PERT to specify the
previously hard-coded dimensional parameters in the sloshing_initialization
module.  Also added comments documenting the purpose and units of the internal
real variables in sloshing_initialization.F90.  There is also a new comment
questioning whether the temperature perturbations are being applied correctly,
but for now the code reproduces the previous answers.  By default all answers
are bitwise identical, but there are new entries in the MOM_parameter_doc.all
files for the sloshing test cases.
  Added the new runtime parameters DOME_T_LIGHT and reuse the existing parameter
S_REF to specify the previously hard-coded dimensional parameters in the
DOME_initialization module.  By default all answers are bitwise identical, but
there are new entries in the MOM_parameter_doc.all files for versions of the
DOME test case with temperature and salinity as state variables.
@Hallberg-NOAA Hallberg-NOAA added documentation Improvements or additions to documentation 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 #292 (13fd0e1) into dev/gfdl (f86d762) will decrease coverage by 0.00%.
The diff coverage is 25.00%.

@@             Coverage Diff              @@
##           dev/gfdl     #292      +/-   ##
============================================
- Coverage     37.06%   37.06%   -0.01%     
============================================
  Files           263      263              
  Lines         73631    73644      +13     
  Branches      13722    13723       +1     
============================================
+ Hits          27295    27299       +4     
- Misses        41299    41309      +10     
+ Partials       5037     5036       -1     
Impacted Files Coverage Δ
src/user/DOME2d_initialization.F90 0.00% <0.00%> (ø)
src/user/DOME_initialization.F90 0.00% <0.00%> (ø)
src/user/sloshing_initialization.F90 0.00% <0.00%> (ø)
src/user/benchmark_initialization.F90 95.95% <100.00%> (+0.17%) ⬆️
src/framework/MOM_document.F90 74.55% <0.00%> (ø)

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

@marshallward marshallward self-requested a review January 4, 2023 17:02
@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 8fa8f31 into NOAA-GFDL:dev/gfdl Jan 5, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the explicit_user_params branch February 2, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants