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

+Set input file variable names via runtime params #231

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

Hallberg-NOAA
Copy link
Member

@Hallberg-NOAA Hallberg-NOAA commented Nov 7, 2022

Added calls to get_param to set 12 input variable names in files via runtime parameters, including TIDEAMP_VARNAME, TEMP_COORD_VAR, SALT_COORD_VAR, THICKNESS_IC_VAR, INTERFACE_IC_RESCALE, TEMP_IC_VAR, SALT_IC_VAR, BASIN_VAR, TIDAL_DISSIPATION_VAR, ROUGHNESS_VARNAME, TIDEAMP_VARNAME and KH_BG_2D_VARNAME. Also added two new runtime parameters, THICKNESS_IC_RESCALE and INTERFACE_IC_RESCALE, to allow input thickness and interface height fields to be rescaled. A number of spelling errors in comments or output messages in the files that were being modified as a part of this commit, including changes in the documentation that appears in MOM_parameter_doc files.

A second commit added calls to get_param to set 4 more input variable names in files via runtime parameters, including U_IC_VAR, V_IC_VAR, OPEN_DY_CU_VAR and OPEN_DX_CV_VAR. Also added or amended comments describing internal variables to describe their units more consistently in MOM_shared_initialization.

All answers are bitwise identical, but there are new entries and minor changes in many MOM_parameter_doc files.

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #231 (09479b4) into dev/gfdl (f1fe63d) will decrease coverage by 0.01%.
The diff coverage is 4.41%.

❗ Current head 09479b4 differs from pull request most recent head bf9e191. Consider uploading reports for the commit bf9e191 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #231      +/-   ##
============================================
- Coverage     37.18%   37.17%   -0.02%     
============================================
  Files           263      263              
  Lines         73198    73221      +23     
  Branches      13637    13638       +1     
============================================
+ Hits          27217    27218       +1     
- Misses        40956    40978      +22     
  Partials       5025     5025              
Impacted Files Coverage Δ
src/ice_shelf/MOM_ice_shelf.F90 0.00% <0.00%> (ø)
src/initialization/MOM_coord_initialization.F90 55.81% <0.00%> (-0.66%) ⬇️
src/initialization/MOM_shared_initialization.F90 29.20% <0.00%> (-0.10%) ⬇️
src/initialization/MOM_state_initialization.F90 21.50% <0.00%> (-0.15%) ⬇️
src/ocean_data_assim/MOM_oda_driver.F90 0.00% <0.00%> (ø)
...c/parameterizations/lateral/MOM_internal_tides.F90 0.00% <0.00%> (ø)
...meterizations/vertical/MOM_internal_tide_input.F90 0.00% <0.00%> (ø)
...c/parameterizations/vertical/MOM_set_viscosity.F90 60.04% <0.00%> (-0.07%) ⬇️
...rc/parameterizations/vertical/MOM_tidal_mixing.F90 1.40% <0.00%> (-0.01%) ⬇️
src/parameterizations/lateral/MOM_hor_visc.F90 50.40% <100.00%> (+0.04%) ⬆️

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

@Hallberg-NOAA Hallberg-NOAA added the enhancement New feature or request label Nov 15, 2022
  Added calls to get_param to set 12 input variable names in files via runtime
parameters, including TIDEAMP_VARNAME, TEMP_COORD_VAR, SALT_COORD_VAR,
THICKNESS_IC_VAR, INTERFACE_IC_RESCALE, TEMP_IC_VAR, SALT_IC_VAR, BASIN_VAR,
TIDAL_DISSIPATION_VAR, ROUGHNESS_VARNAME, TIDEAMP_VARNAME and KH_BG_2D_VARNAME.
Also added two new runtime parameters, THICKNESS_IC_RESCALE and
INTERFACE_IC_RESCALE, to allow input thickness and interface height fields to be
rescaled.  A number of spelling errors in comments or output messages in the
files that were being modified as a part of this commit, including changes in
the documentation that appears in MOM_parameter_doc files.  All answers are
bitwise identical, but there are new entries and minor changes in many
MOM_parameter_doc files.
  Added calls to get_param to set 4 more input variable names in files via
runtime, including U_IC_VAR, V_IC_VAR, OPEN_DY_CU_VAR and OPEN_DX_CV_VAR.  Also
added or amended comments describing internal variables to describe their units
more consistently in MOM_shared_initialization.  All answers are bitwise
identical, but there may be new entries in some MOM_parameter_doc files.
@marshallward
Copy link
Member

marshallward commented Nov 16, 2022

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

This needs a parameter change, due to new parameters and typo fixes in some descriptions.

New parameters in our regression:

  • TIDEAMP_VARNAME
  • ROUGHNESS_VARNAME
  • INTERFACE_IC_VAR
  • INTERFACE_IC_RESCALE
  • KH_BG_2D_VARNAME

@marshallward marshallward merged commit 530cd58 into NOAA-GFDL:dev/gfdl Nov 16, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the input_var_names branch February 2, 2023 13:51
marshallward pushed a commit that referenced this pull request Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants