Skip to content

*+DOME initialization cleanup and bug fix#165

Merged
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:DOME_init_cleanup
Jul 17, 2022
Merged

*+DOME initialization cleanup and bug fix#165
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:DOME_init_cleanup

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

This PR includes two sets of changes that change answers in the DOME and
flow_downslopes test cases. One change corrects an obvious bug in
DOME2d_initialize_temperature_salinity that reset the temperatures to 0 with the
ZSTAR and SIGMA vertical coordinates. The other set of changes to the DOME
initialization is mathematically equivalent to what was there before, but
revises the expressions setting up the DOME test case to use runtime parameters,
more gracefully accomodates changes to those parameters, and replaces some
divisions with multiplication by a reciprocal. There are changes to the DOME
MOM_parameter_doc.all file, and answer changes in the DOME and two variants of
the flow_downslope test cases. This commits in this PR include:

  • 73420c8d3 +*Use runtime parameters in DOME initialization
  • 884049de5 *Fix DOME2d_initialize_temperature_salinity bug

  Removed a line resetting temperatures to 0 for the ZSTAR and SIGMA vertical
coordinates in DOME2d_initialize_temperature_salinity, after they had been set
to the intended values.  github.com/mom-ocean/issues/1560 highlights this
bug and can be closed after this commit is merged into the main branch of MOM6.
This changes the temperature fields (and ocean.stats files) for the
flow_downslopes/z and flow_downslopes/sigma test cases, but because temperature
does not influence density in these cases, the flows and salinities are
unchanged.
  Modified the DOME initialization to simplify some expressions and to use
run-time parameters, rather than hard-coded values, when initializing the DOME
test case.  By default, all expressions are mathematically equivalent, but there
are roundoff level changes in the topography and sponges due to the use of more
generally valid expressions with runtime parameters and the replacement of some
divisions for unit conversions by multiplication by a reciprocal.  Because the
DOME test cases are strongly nonlinear, these small changes cascade up to
macroscopic differences, but these are of comparable magnitude to the
differences between compilers.  There are 10 new runtime parameters that appear
in the MOM_parameter_doc.all files for the DOME test cases.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 13, 2022

Codecov Report

Merging #165 (73b6289) into dev/gfdl (4f039a8) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 73b6289 differs from pull request most recent head c77e0cc. Consider uploading reports for the commit c77e0cc to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #165      +/-   ##
============================================
- Coverage     34.01%   34.01%   -0.01%     
============================================
  Files           259      259              
  Lines         70209    70218       +9     
  Branches      13012    13011       -1     
============================================
  Hits          23884    23884              
- Misses        41826    41835       +9     
  Partials       4499     4499              
Impacted Files Coverage Δ
src/user/DOME2d_initialization.F90 0.00% <0.00%> (ø)
src/user/DOME_initialization.F90 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f039a8...c77e0cc. Read the comment docs.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working answer-changing A change in results (actual or potential) labels Jul 15, 2022
@marshallward
Copy link
Copy Markdown
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/16123 ❌ Failed as expected:

Failed runs

  • ocean_only/flow_downslope/sigma/ocean.stats.gnu: FAILED
  • ocean_only/flow_downslope/z/ocean.stats.gnu: FAILED
  • ocean_only/DOME/ocean.stats.gnu: FAILED

Failed parameters:

  • ocean_only/DOME/MOM_parameter_doc.all: FAILED

@Hallberg-NOAA
Copy link
Copy Markdown
Member Author

These are the 3 cases where the answers are expected to change.

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) bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants