Skip to content

Reduced diagnostic memory footprint and MOM_sponge cleanup#34

Merged
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:less_diagnostic_arrays
Dec 14, 2021
Merged

Reduced diagnostic memory footprint and MOM_sponge cleanup#34
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:less_diagnostic_arrays

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

This PR reduced the memory footprint with a rich set of diagnostics and cleans
up some aspects of the MOM_sponge code, including using a proper conversion
factor for one diagnostic. With this change, we may be able to run cases with
energy budget diagnostics in particular on fewer processors than before. All
answers and output are bitwise identical. The commits in this PR include:

  Eliminated 18 unnecessary 3-d allocatable arrays and 5 2-d allocatable arrays
from the MOM_diagnostics control structure, replacing them with reused local
stack arrays.  Also collected the registration of time derivatives and the
allocation of memory for intermediary diagnostics in set_dependent_diagnostics.
All answers and output are bitwise identical.
  Use the proper conversion factor for the w_sponge diagnostic, eliminated some
unnecessary local copies of the domain sizes in the sponge control structure,
and added more detailed descriptions of some of the variables in this module.
All answers and output are bitwise identical.
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 9, 2021

Codecov Report

Merging #34 (2912d44) into dev/gfdl (8f5dc28) will decrease coverage by 0.03%.
The diff coverage is 48.75%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #34      +/-   ##
============================================
- Coverage     29.00%   28.96%   -0.04%     
============================================
  Files           240      240              
  Lines         71237    71175      -62     
============================================
- Hits          20665    20619      -46     
+ Misses        50572    50556      -16     
Impacted Files Coverage Δ
src/parameterizations/vertical/MOM_sponge.F90 0.00% <0.00%> (ø)
src/diagnostics/MOM_diagnostics.F90 75.47% <55.71%> (+0.19%) ⬆️

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 8f5dc28...2912d44. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit 170fffd into NOAA-GFDL:dev/gfdl Dec 14, 2021
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 1, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the less_diagnostic_arrays branch March 25, 2022 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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