Skip to content

Correct MLD_EN_VALS rescaling#342

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:MLD_En_vals_scaling
Apr 20, 2023
Merged

Correct MLD_EN_VALS rescaling#342
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:MLD_En_vals_scaling

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Correct inconsistent dimensional rescaling of the input values of MLD_EN_VALS, setting them all to [R Z3 T-2 ~> J m-2] to reflect that these are energies associated with vertical turbulent mixing. This fixes a rescaling bug when these energies are set to non-default values at runtime, but all answers and output are bitwise identical when no rescaling is used.

  Correct inconsistent dimensional rescaling of the input values of MLD_EN_VALS,
setting them all to [R Z3 T-2 ~> J m-2] to reflect that these are energies
associated with vertical turbulent mixing.  This fixes a rescaling bug when
these energies are set to non-default values at runtime, but all answers and
output are bitwise identical when no rescaling is used.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Mar 23, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 23, 2023

Codecov Report

Merging #342 (8b20c30) into dev/gfdl (c32be04) will increase coverage by 0.00%.
The diff coverage is 94.11%.

❗ Current head 8b20c30 differs from pull request most recent head 812b730. Consider uploading reports for the commit 812b730 to get more accurate results

@@            Coverage Diff            @@
##           dev/gfdl     #342   +/-   ##
=========================================
  Coverage     37.07%   37.08%           
=========================================
  Files           264      264           
  Lines         74349    74349           
  Branches      13787    13787           
=========================================
+ Hits          27568    27571    +3     
+ Misses        41682    41681    -1     
+ Partials       5099     5097    -2     
Impacted Files Coverage Δ
...parameterizations/vertical/MOM_diabatic_driver.F90 46.31% <93.75%> (ø)
...rc/parameterizations/vertical/MOM_diabatic_aux.F90 61.38% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Copy Markdown

@breichl breichl 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 these changes, particularly because they make the energy scaling consistent with the approach in ePBL.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit f9897c8 into NOAA-GFDL:dev/gfdl Apr 20, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the MLD_En_vals_scaling branch May 10, 2024 22:14
pittwolfe pushed a commit to pittwolfe/MOM6 that referenced this pull request Apr 18, 2025
)

When Auto Masking is enabled, the LAYOUT is unknown a priori,
so it's not possible to predetermine a compatible IO_LAYOUT.
This commit introduces an option to set a target number of
IO PEs (TARGET_IO_PES), to be used as a reference for the
auto masking routine to come up with an IO_LAYOUT compatible
with LAYOUT on the fly. If original TARGET_IO_PES is not
achievable without having to sacrifice too much land masking,
IO PEs is decremented until a feasible combination of LAYOUT
and IO_LAYOUT is found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants