Skip to content

+(*)Change the remapping dzInterface argument sign#61

Merged
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:remap_all_state_var_signs
Jan 24, 2022
Merged

+(*)Change the remapping dzInterface argument sign#61
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:remap_all_state_var_signs

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Changed the name and sign convention for the dzInterface argument to
remap_all_state_vars to reflect the convention used in the regridding code and
to reflect the fact that this is always a vertical displacement. This change
eliminates a subtle array-syntax whole-array multiplication (by -1.) in one call
to remap_all_state_vars (this clearly violated MOM6 code standards), and it
corrects an actual sign error that will change answers (perhaps from a state of
catastrophic failure) in the code for the REGRID_ACCELERATE_INIT=True option if
REMAP_UV_USING_OLD_ALG is also true and the initial velocities that are being
remapped are non-zero. Also added comments describing the real variables inside
of remap_all_state_vars to help clarify what they do. Fortunately the situation
where answers change seems like a very uncommon combination of settings (it is
possible that no one has ever tried this), and all answers in the MOM6-examples
test suite are bitwise identical.

  Changed the name and sign convention for the dzInterface argument to
remap_all_state_vars to reflect the convention used in the regridding code and
to reflect the fact that this is always a vertical displacement.  This change
eliminates a subtle array-syntax whole-array multiplication (by -1.) in one call
to remap_all_state_vars (this clearly violated MOM6 code standards), and it
corrects an actual sign error that will change answers (perhaps from a state of
catastrophic failure) in the code for the REGRID_ACCELERATE_INIT=True option if
REMAP_UV_USING_OLD_ALG is also true and the initial velocities that are being
remapped are non-zero.  Also added comments describing the real variables inside
of remap_all_state_vars to help clarify what they do.  Fortunately the situation
where answers change seems like a very uncommon combination of settings (it is
possible that no one has ever tried this), and all answers in the MOM6-examples
test suite are bitwise identical.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 18, 2022

Codecov Report

Merging #61 (0574ac8) into dev/gfdl (6da5c9b) will decrease coverage by 0.00%.
The diff coverage is 31.25%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #61      +/-   ##
============================================
- Coverage     28.95%   28.94%   -0.01%     
============================================
  Files           242      242              
  Lines         71556    71553       -3     
============================================
- Hits          20716    20714       -2     
+ Misses        50840    50839       -1     
Impacted Files Coverage Δ
src/ALE/MOM_ALE.F90 34.47% <31.25%> (-0.21%) ⬇️

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 6da5c9b...0574ac8. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit 9f0018f into NOAA-GFDL:dev/gfdl Jan 24, 2022
@Hallberg-NOAA Hallberg-NOAA added answer-changing A change in results (actual or potential) bug Something isn't working refactor Code cleanup with no changes in functionality or results labels Feb 1, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the remap_all_state_var_signs branch March 25, 2022 12:37
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 refactor Code cleanup with no changes in functionality or results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants