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

(*)Fix ice shelf dimensional rescaling bugs #126

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Fixed two minor bugs in the ice-shelf code that impede its performance when
dimensional scaling is used.

  • Report rescaling factors of 1 in the ice shelf restart files, now that the
    variables are rescaled before being written to the restart files. Without
    this change, certain runs with enabled ice shelf capabilities will not
    reproduce across restarts when dimensional rescaling is enabled.

  • Pass the unit scaling type to the EOS_init call. Without this change,
    cases with an active ice shelf will not pass dimensional rescaling tests
    if there is a nonlinear equation of state.

All answers are bitwise identical without dimensional rescaling or an active ice
shelf, but in some cases answers will be changed so that now the code will pass
some reproducibility tests.

  Fixed two minor bugs in the ice-shelf code that impede its performance when
dimensional scaling is used.

- Report rescaling factors of 1 in the ice shelf restart files, now that the
  variables are rescaled before being written to the restart files.  Without
  this change, certain runs with enabled ice shelf capabilities will not
  reproduce across restarts when dimensional rescaling is enabled.

- Pass the unit scaling type to the EOS_init call.  Without this change,
  cases with an active ice shelf will not pass dimensional rescaling tests
  if there is a nonlinear equation of state.

All answers are bitwise identical without dimensional rescaling or an active ice
shelf, but in some cases answers will be changed so that now the code will pass
some reproducibility tests.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label May 16, 2022
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #126 (902fc22) into dev/gfdl (4a6a175) will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           dev/gfdl     #126   +/-   ##
=========================================
  Coverage     33.45%   33.45%           
=========================================
  Files           262      262           
  Lines         71385    71385           
  Branches      13323    13323           
=========================================
  Hits          23884    23884           
  Misses        43029    43029           
  Partials       4472     4472           
Impacted Files Coverage Δ
src/ice_shelf/MOM_ice_shelf.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 4a6a175...902fc22. Read the comment docs.

@Hallberg-NOAA
Copy link
Member Author

Olga Sergienko will be providing a review of this PR after she gets back from the EGU meeting. If she has not done this yet, this PR can be temporarily bypassed.

@Hallberg-NOAA
Copy link
Member Author

Upon further reflection, although this PR deals with code in the ice-shelf directory, it really is not specific to ice-shelves, and does not require ice-shelf subject matter expertise. Unlike PR # 130, this PR can be dealt with without waiting for Olga's review.

Copy link

@OlgaSergienko OlgaSergienko left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this bug. The code runs as intended.

Copy link
Member

@marshallward marshallward left a comment

Choose a reason for hiding this comment

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

Approved on behalf of @OlgaSergienko

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 95119a2 into NOAA-GFDL:dev/gfdl Jun 5, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the ice_shelf_rescale_bugfix branch July 16, 2022 09:42
marshallward pushed a commit that referenced this pull request Feb 28, 2024
Add non-interval restart capability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants