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

+Add ALE options mimicking Hycom #77

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Added a number of options to MOM_ALE to mimic options that are found in
Hycom. By default, all answers are bitwise identical, but there are several
new runtime parameters. The code changes include:

  • Added the ability to use a different remapping scheme for velocities than
    for tracers, using the new runtime parameter VELOCITY_REMAPPING_SCHEME

  • Added the new runtime option PARTIAL_CELL_VELOCITY_REMAP to use partial cell
    thicknesses for remapping at velocity points, which triggers a call to the
    new internal routine apply_partial_cell_mask.

  • Added the new internal routine mask_near_bottom_vel to allow MOM6 to mimic
    Hycom in zeroing out the velocities in thin layers in a bottom boundary
    layer with a thickness given by the new runtime parameter
    REMAP_VEL_MASK_BBL_THICK, while the definition of thin is specified by
    REMAP_VEL_MASK_H_THIN. Setting these to be negative (as is the default)
    avoids this.

  • Modified the interface to remap_all_state_vars to take just the ALE_CS, which
    then provides the remapping control structure that is appropriate for the
    tracers or velocities, rather than also passing this in as an argument.

  • Eliminated some unnecessary internal variables, and added others to be
    more explicit avoid array syntax copies in arguments.

  Added a number of options to MOM_ALE to mimic options that are found in
Hycom.  By default, all answers are bitwise identical, but there are several
new runtime parameters.  The code changes include:

 . Added the ability to use a different remapping scheme for velocities than
   for tracers, using the new runtime parameter VELOCITY_REMAPPING_SCHEME

 . Added the new runtime option PARTIAL_CELL_VELOCITY_REMAP to use partial cell
   thicknesses for remapping at velocity points, which triggers a call to the
   new internal routine apply_partial_cell_mask.

 . Added the new internal routine mask_near_bottom_vel to allow MOM6 to mimic
   Hycom in zeroing out the velocities in thin layers in a bottom boundary
   layer with a thickness given by the new runtime parameter
   REMAP_VEL_MASK_BBL_THICK, while the definition of thin is specified by
   REMAP_VEL_MASK_H_THIN.  Setting these to be negative (as is the default)
   avoids this.

 . Modified the interface to remap_all_state_vars to take just the ALE_CS, which
   then provides the remapping control structure that is appropriate for the
   tracers or velocities, rather than also passing this in as an argument.

 . Eliminated some unnecessary internal variables, and added others to be
   more explicit avoid array syntax copies in arguments.
@codecov
Copy link

codecov bot commented Feb 26, 2022

Codecov Report

Merging #77 (63d342a) into dev/gfdl (cf193a8) will increase coverage by 0.00%.
The diff coverage is 30.70%.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl      #77   +/-   ##
=========================================
  Coverage     29.04%   29.04%           
=========================================
  Files           244      244           
  Lines         71849    71893   +44     
=========================================
+ Hits          20869    20884   +15     
- Misses        50980    51009   +29     
Impacted Files Coverage Δ
src/ALE/MOM_ALE.F90 34.44% <30.70%> (-0.04%) ⬇️

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 cf193a8...63d342a. Read the comment docs.

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.

This should probably be reviewed by someone connected to HYCOM, but no obvious problems are coming up so this is approved.

@marshallward
Copy link
Member

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

This requires a parameter update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants