Skip to content

Improvements in the MOM_lateral_boundary_diffusion module#240

Merged
alperaltuntas merged 5 commits into
NCAR:dev/ncarfrom
gustavo-marques:HBD_march2023v2
Mar 30, 2023
Merged

Improvements in the MOM_lateral_boundary_diffusion module#240
alperaltuntas merged 5 commits into
NCAR:dev/ncarfrom
gustavo-marques:HBD_march2023v2

Conversation

@gustavo-marques
Copy link
Copy Markdown
Collaborator

This PR addresses comments from the reviewers of Marques et al. submitted to JAMES. This PR must be evaluated with ESCOMP/MOM_interface#136
All solutions are bitwise identical.

Rename module

  • Following the suggestion from a reviewer, MOM_lateral_boundary_diffusion has been renamed to MOM_hor_bnd_diffusion. Many submodules related to the old lateral diffusion have been renamed throughout the code.
  • "LBD" has been replaced with "HBD".

Reduce computational cost

Build and store the HBD grid outside the tracer loop since the same grid is used in all tracers. This reduces the computational cost of this module. A GMOM case run for 10 days with 3 tracers is ~ 7.5 % faster.

* Rename MOM_lateral_boundary_diffusion.F90 to
  MOM_hor_bnd_diffusion.F90.
* Following the suggestion from a reviewer, MOM_lateral_boundary_diffusion
  has been renamed to MOM_hor_bnd_diffusion. Many submodules related to the
  'old; lateral diffusion have been renamed throughout the code.
  LBD has been replaced to HBD.
* Tested that answers for GMOM do not change.
Build and store the HBD grid outside the tracer loop since the
same grid is used in all tracers. This makes this module
more computationaly efficient. A GMOM case run for 10 days and with
3 tracer is ~ 7.5 % faster.
* Add subroutine hbd_grid_test, which mimics subroutine hbd_grid
  but it is only used in the unit tests;

* Add unit tests for hbd_grid_test and fix existing tests for
  fluxes_layer_method;

* Delete unused code and fix the format of doxygen throughout
  the module.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 23, 2023

Codecov Report

Patch coverage: 29.91% and project coverage change: -0.01 ⚠️

Comparison is base (72e5535) 37.18% compared to head (23e1794) 37.18%.

❗ Current head 23e1794 differs from pull request most recent head a697159. Consider uploading reports for the commit a697159 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/ncar     #240      +/-   ##
============================================
- Coverage     37.18%   37.18%   -0.01%     
============================================
  Files           263      263              
  Lines         73163    73219      +56     
  Branches      13625    13629       +4     
============================================
+ Hits          27208    27223      +15     
- Misses        40943    40984      +41     
  Partials       5012     5012              
Impacted Files Coverage Δ
src/core/MOM_unit_tests.F90 16.66% <ø> (ø)
src/tracer/MOM_neutral_diffusion.F90 65.38% <ø> (ø)
src/tracer/MOM_tracer_types.F90 0.00% <ø> (ø)
src/tracer/MOM_tracer_hor_diff.F90 76.51% <25.00%> (+0.03%) ⬆️
src/tracer/MOM_hor_bnd_diffusion.F90 61.87% <29.41%> (ø)
src/tracer/MOM_tracer_registry.F90 64.72% <33.33%> (+0.18%) ⬆️
src/diagnostics/MOM_obsolete_params.F90 69.66% <100.00%> (+0.34%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alperaltuntas alperaltuntas merged commit 61bfacd into NCAR:dev/ncar Mar 30, 2023
alperaltuntas pushed a commit that referenced this pull request Apr 2, 2026
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.

3 participants