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

+Refactor ALE_remap_velocities #517

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

Hallberg-NOAA
Copy link
Member

Refactored ALE_remap_velocities to separate the code setting the thicknesses at velocity points from the code that actually does the remapping. This includes the creation of the new public routines ALE_remap_set_h_vel and ALE_remap_set_h_vel_via_dz and the replacement the pair of tracer point thickness arguments to ALE_remap_velocities and remap_dyn_split_RK2_aux_vars with a pair of the old and new thicknesses at the velocity points and the elimination of several arguments to these routines that are no longer being used. There are also new internal routines ALE_remap_set_h_vel_partial and ALE_remap_set_h_vel_OBC to apply modifications to the velocity point thicknesses with OBCs and one runtime option. The runtime variable REMAP_UV_USING_OLD_ALG has effectively been moved from MOM_ALE.F90 to MOM.F90, although it is still being read in MOM_ALE_init for use with the accelerated regridding during initialization. All answers are bitwise identical, but there are two new public interfaces and changes to the arguments to two other public interfaces and a run-time parameter was moved between modules resulting in changes to some MOM_parameter_doc files.

  Refactored ALE_remap_velocities to separate the code setting the thicknesses
at velocity points from the code that actually does the remapping.  This
includes the creation of the new public routines ALE_remap_set_h_vel and
ALE_remap_set_h_vel_via_dz and the replacement the pair of tracer point
thickness arguments to ALE_remap_velocities and remap_dyn_split_RK2_aux_vars
with a pair of the old and new thicknesses at the velocity points and the
elimination of several arguments to these routines that are no longer being
used.  There are also new internal routines ALE_remap_set_h_vel_partial and
ALE_remap_set_h_vel_OBC to apply modifications to the velocity point thicknesses
with OBCs and one runtime option.  The runtime variable REMAP_UV_USING_OLD_ALG
has effectively been moved from MOM_ALE.F90 to MOM.F90, although it is still
being read in MOM_ALE_init for use with the accelerated regridding during
initialization.  All answers are bitwise identical, but there are two new
public interfaces and changes to the arguments to two other public interfaces
and a run-time parameter was moved between modules resulting in changes to
some MOM_parameter_doc files.
@Hallberg-NOAA Hallberg-NOAA added refactor Code cleanup with no changes in functionality or results Parameter change Input parameter changes (addition, removal, or description) labels Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #517 (9ad24ff) into dev/gfdl (b15a9d4) will increase coverage by 0.01%.
The diff coverage is 50.90%.

❗ Current head 9ad24ff differs from pull request most recent head 39569aa. Consider uploading reports for the commit 39569aa to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #517      +/-   ##
============================================
+ Coverage     37.44%   37.46%   +0.01%     
============================================
  Files           270      270              
  Lines         79722    79765      +43     
  Branches      14824    14831       +7     
============================================
+ Hits          29855    29881      +26     
- Misses        44331    44349      +18     
+ Partials       5536     5535       -1     
Files Coverage Δ
src/core/MOM_dynamics_split_RK2.F90 61.98% <0.00%> (+0.08%) ⬆️
src/core/MOM.F90 51.02% <80.00%> (+0.38%) ⬆️
src/ALE/MOM_ALE.F90 43.87% <44.44%> (-0.44%) ⬇️

... and 1 file with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 753cab3 into NOAA-GFDL:dev/gfdl Nov 10, 2023
10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the refactor_ALE_remap_vel branch May 10, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parameter change Input parameter changes (addition, removal, or description) refactor Code cleanup with no changes in functionality or results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants