Skip to content

Fix to sponge verbosity, also some documentation.#1500

Merged
Hallberg-NOAA merged 42 commits into
mom-ocean:dev/gfdlfrom
ESMG:dev/esmg
Sep 24, 2021
Merged

Fix to sponge verbosity, also some documentation.#1500
Hallberg-NOAA merged 42 commits into
mom-ocean:dev/gfdlfrom
ESMG:dev/esmg

Conversation

@kshedstrom
Copy link
Copy Markdown
Collaborator

In a chat with @Hallberg-NOAA and @adcroft, we decided to clean up some excessive print statements from MOM6's sponge code. Here it is. Also, some added verbosity to a warning about negative water depths. Thirdly, the last of the internal vertical diffusion documentation (for now).

kshedstrom and others added 30 commits June 10, 2021 15:13
This is required for the u,v sponges to be invariant of tiling.
I don't know why, but the problem only showed up for me in a narrow
channel in the Bering domain.
The MOM_control_struct is declared and passed as a pointer to a CS
(usually allocated anonymously) and treated as if it were a pointer,
even though there is currently no real advantage to doing so.

After the FMS update, the deallocation of this CS was causing a
segmentation fault in the PGI compilers.  While the underlying cause was
never determined, it is likely due to some automated deallocation of the
CS contents, whose addressing became scrambled.

This problem can be resolved by moving all of the CS contents to stack,
so that the contents are automatically removed upon exiting whatever
function it was instantiated.  Subsequent calls can reference the local
(or parent) stack contents.
- Without this change, the edges don't reproduce on restart
  due to the h values outside being nonsense.
- Also updated frazil ice documentation.
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 22, 2021

Codecov Report

Merging #1500 (a3a4d8e) into dev/gfdl (2336727) will decrease coverage by 0.02%.
The diff coverage is 50.00%.

❗ Current head a3a4d8e differs from pull request most recent head 3f2ebd0. Consider uploading reports for the commit 3f2ebd0 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1500      +/-   ##
============================================
- Coverage     29.04%   29.02%   -0.03%     
============================================
  Files           237      237              
  Lines         71626    71779     +153     
============================================
+ Hits          20807    20831      +24     
- Misses        50819    50948     +129     
Impacted Files Coverage Δ
src/core/MOM_barotropic.F90 37.10% <0.00%> (-0.02%) ⬇️
src/framework/MOM_horizontal_regridding.F90 37.62% <75.00%> (+0.25%) ⬆️
src/framework/MOM_safe_alloc.F90 27.90% <0.00%> (-5.43%) ⬇️
src/core/MOM_dynamics_split_RK2.F90 59.59% <0.00%> (-1.49%) ⬇️
src/core/MOM.F90 58.60% <0.00%> (-0.40%) ⬇️
src/parameterizations/vertical/MOM_ALE_sponge.F90 15.37% <0.00%> (-0.35%) ⬇️
src/parameterizations/lateral/MOM_hor_visc.F90 43.21% <0.00%> (-0.16%) ⬇️
src/core/MOM_open_boundary.F90 20.00% <0.00%> (-0.09%) ⬇️
src/framework/MOM_checksums.F90 64.64% <0.00%> (-0.08%) ⬇️
...parameterizations/vertical/MOM_diabatic_driver.F90 39.18% <0.00%> (-0.06%) ⬇️
... and 15 more

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 2336727...3f2ebd0. Read the comment docs.

Comment thread src/framework/MOM_horizontal_regridding.F90 Outdated
Copy link
Copy Markdown
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with all the code changes in this PR, and I have read through the documentation changes, and believe them to be substantially correct as well. This PR has passed the TC testing, and the pipeline testing has run successfully at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/13648 .

@Hallberg-NOAA Hallberg-NOAA merged commit 41947ab into mom-ocean:dev/gfdl Sep 24, 2021
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