Skip to content

Warn when numberOfGroundings exceeds maxGroundings#179

Merged
adcroft merged 1 commit into
mom-ocean:dev/masterfrom
angus-g:diabatic-groundings
May 22, 2015
Merged

Warn when numberOfGroundings exceeds maxGroundings#179
adcroft merged 1 commit into
mom-ocean:dev/masterfrom
angus-g:diabatic-groundings

Conversation

@angus-g
Copy link
Copy Markdown
Collaborator

@angus-g angus-g commented May 20, 2015

In MOM_diabatic_driver::applyBoundaryFluxesInOut(), if more than maxGroundings groundings are encountered, an out-of-bounds array access will occur, likely causing a segmentation fault. This change causes only maxGroundings groundings to be printed, with a warning about the number of remaining groundings.

As an aside, am I right in thinking that a grounding occurs when some of the mass out due to fluxes is not able to be removed?

In MOM_diabatic_driver, if more than maxGroundings groundings are
encountered, an out-of-bounds array access will occur, likely causing a
segmentation fault. This change causes only maxGroundings groundings to
be printed, with a warning about the number of remaining groundings.
@adcroft adcroft self-assigned this May 22, 2015
@adcroft adcroft merged commit 04c6a76 into mom-ocean:dev/master May 22, 2015
@angus-g angus-g deleted the diabatic-groundings branch May 22, 2015 22:40
gustavo-marques pushed a commit to gustavo-marques/MOM6 that referenced this pull request Mar 26, 2021
Add med2mod_areacor and move where area correction is applied
MJHarrison-GFDL pushed a commit to MJHarrison-GFDL/MOM6 that referenced this pull request Aug 16, 2022
[ci skip] Add issue/pull request templates
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