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

(*)Fix code problems that appear in ISOMIP cases #1175

Merged
merged 3 commits into from
Aug 10, 2020

Conversation

Hallberg-NOAA
Copy link
Collaborator

This PR fixes two problems that will allow the ISOMIP/layer test case and
related configurations to work again as originally intended. It corrected a
horizontal indexing bug in int_density_dz_linear that caused the ISOMIP/layer
test case to fail; this bug was first introduced with PR#732 on March 8, 2018.
Additionally, there is new code to set dSV_dT and dSV_dS if present in
applyBoundaryFluxesInOut, even if boundary fluxes are not associated.

These code changes will change answers with a linear equation of state and the
finite volume pressure gradient force, or in other uncommon cases with an ePBL
boundary layer parameterization and no buoyancy fluxes, however they does not
change any of the verified answers in the MOM6-examples regression suite and all
output files are unchanged

The commits in this PR include:

Hallberg-NOAA and others added 3 commits August 7, 2020 08:13
  Set dSV_dT and dSV_dS if present in applyBoundaryFluxesInOut, even if boundary
fluxes are not associated.  With this change, setting BUOY_CONFIG='NONE' and
BUOY_CONFIG='zero' both work and give similar (but not identical) answers in
some test cases with an ePBL boundary layer parameterization, whereas before
answers were tainted with uninitialized values when BUOY_CONFIG='NONE'.  All
answers in the existing MOM6-examples test suite are bitwise identical, but
answers can change in other cases.
  Corrected a horizontal indexing bug in int_density_dz_linear that caused the
ISOMIP/layer test case to fail.  This bug was first introduced with PR#732 on
March 8, 2018.  This bug fix will change answers with a linear equation of state
and the finite volume pressure gradient force, however it does not change any of
the verified answers in the MOM6-examples regression suite.
@codecov-commenter
Copy link

Codecov Report

Merging #1175 into dev/gfdl will decrease coverage by 0.13%.
The diff coverage is 40.20%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1175      +/-   ##
============================================
- Coverage     46.08%   45.95%   -0.14%     
============================================
  Files           214      224      +10     
  Lines         69399    70505    +1106     
============================================
+ Hits          31984    32398     +414     
- Misses        37415    38107     +692     
Impacted Files Coverage Δ
...g_src/external/GFDL_ocean_BGC/FMS_coupler_util.F90 0.00% <0.00%> (ø)
...fig_src/external/GFDL_ocean_BGC/generic_tracer.F90 0.00% <0.00%> (ø)
...c/external/GFDL_ocean_BGC/generic_tracer_utils.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/kdtree.f90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/ocean_da_core.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/ocean_da_types.F90 0.00% <0.00%> (ø)
config_src/external/ODA_hooks/write_ocean_obs.F90 0.00% <0.00%> (ø)
config_src/solo_driver/MESO_surface_forcing.F90 0.00% <0.00%> (ø)
config_src/solo_driver/MOM_driver.F90 68.72% <ø> (ø)
config_src/solo_driver/user_surface_forcing.F90 0.00% <0.00%> (ø)
... and 166 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 f8d1379...6461d75. Read the comment docs.

@marshallward
Copy link
Collaborator

marshallward commented Aug 10, 2020

Gaea regression test: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/10959

Regression tests have passed.

@marshallward marshallward merged commit 73746cb into mom-ocean:dev/gfdl Aug 10, 2020
@Hallberg-NOAA Hallberg-NOAA deleted the ISOMIP_fixes branch July 30, 2021 18:13
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