NCAR / MOM6

NCAR/CESM fork of the Modular Ocean Model v.6 (MOM6)
Other
3 stars 20 forks source link

Fix biharmonic leith #268

Closed iangrooms closed 9 months ago

iangrooms commented 10 months ago

This PR fixes some bugs in Leith+E, changes the code so that it preserves rotational symmetry, re-orders some computations to improve efficiency, and introduces some new features.

  1. Bugs:
    • Indexing errors
    • Computes vert_vort_mag when using Leith+E
    • Fixes some logic in the smoothing code
    • Fixes application of upper bounds on Ah
  2. Features:
    • Smoothing subroutine (smooth_x9) has been re-written to preserve rotational symmetry.
    • Computations re-arranged to improve efficiency (fewer blocking halo updates)
    • A new parameter SMOOTH_AH added. Default is True. When False, no smoothing is applied to the backscatter and biharmonic coefficients, which significantly reduces the number of blocking halo updates.
    • Added some code to make Leith+E work with open boundaries.
gustavo-marques commented 9 months ago

Testing: pr_mom.derecho. No answer changes.