Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid FATAL for allowed combination of options #568

Merged
merged 1 commit into from
Aug 7, 2017
Merged

Avoid FATAL for allowed combination of options #568

merged 1 commit into from
Aug 7, 2017

Conversation

adcroft
Copy link
Collaborator

@adcroft adcroft commented Aug 4, 2017

  • It used to be the case that USE_VARIABLE_MIXING was required to
    use MEKE and other options within the MOM_lateral_mixing_coefs
    module. This is no longer the case: the module will allocate
    and associate pointers as needed. This FATAL error was out
    of date.

- It used to be the case that USE_VARIABLE_MIXING was required to
  use MEKE and other options within the MOM_lateral_mixing_coefs
  module. This is not longer the case: the module will allocate
  and pointers be associated as needed. This FATAL error was out
  of date.
@Hallberg-NOAA Hallberg-NOAA merged commit 53e2b83 into mom-ocean:dev/gfdl Aug 7, 2017
@adcroft adcroft deleted the fix-meke-false-fatal branch September 18, 2017 12:12
Hallberg-NOAA pushed a commit to Hallberg-NOAA/MOM6 that referenced this pull request Feb 26, 2024
* Update MOM_mixed_layer_restrat.F90

Adding and calculating diagnostic front length scale (lf_bodner) to
mixed layer restratification code

Co-authored-by: Kate Hedstrom <kshedstrom@alaska.edu>
Co-authored-by: Marshall Ward <marshall.ward@noaa.gov>

* Bodner diag: Fix ustar and dims

Fix two issues which emerged from the Bodner length scale diagnostic
after the cuberoot ANSWER_DATE was introduced.

The split of the loop due to the cuberoot caused ustar to be assigned in
a separate loop, leaving it uninitialized for the length scale
diagnostics loop.  It also had its dimensions removed.

However, the whole point of the new cuberoot() function was to preserve
its dimensions, so there was no need for the intermediate dimensional
manipulation, and all dimensionality should be shifted to the
registration.

This patch removes the intermediate dimensions and also explicitly
defines it as Z2/H rather than L.

* Bodner diagnostic: Restore scaling to L

The scaling of the Bodner lengthscale diagnostic is correctly restored
to L in this patch.  The Z2 H-1 constant is factored into the
calculation of the lengthscale; I believe this represents a conversion
from a [Z2 T-2]-like momentum flux to a [LH T-2]-like momentum flux.

A generic `uflux_rescale` term was introduced to be used in both
ld_bodner and wpup, to avoid a double division by SpV.

The if-block for computation of ld_bodner was also moved outside of the
loop, in order to facilitate vectorization.

---------

Co-authored-by: Liz Drenkard <liz.drenkard@noaa.gov>
Co-authored-by: Kate Hedstrom <kshedstrom@alaska.edu>
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