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

MOM6: Corrections to open boundary condition code #1037

Merged
merged 3 commits into from
Nov 27, 2019

Conversation

Hallberg-NOAA
Copy link
Collaborator

The pair of commits in this PR include refactoring and dimensional rescaling of the
MOM6 open boundary code, and the correction of several bugs that were revealed
in this process. This commit will change answers when certain types of OBCs
are used, but not in the existing MOM6-examples test suite. The commits in this
PR include:

  Added rescaling for dimensional consistency testing in MOM_open_boundary.F90,
including splitting variables with different units that had previously shared
the same variable and adding more extensive documentation of variables.  Also
changed the dimensions of the timesteps passed to radiation_open_bdry_conds and
update_segment_tracer_reservoirs to [T] and added vertical_grid_type and
unit_scale_type arguments to open_boundary_init and open_boundary_test_extern_h.
All answers are bitwise identical, although some probably bugs have been noted
in comments and there are new or altered arguments to several routines.
  Corrected dimensional consistency bugs in update_segment_tracer_reservoirs and
horizontal indexing and related bugs in gradient_at_q_points with oblique_grad
OBCs.  These will both change answers in test cases that use some open boundary
condition options, but not in any of the MOM6-examples test cases.
@codecov-io
Copy link

codecov-io commented Nov 26, 2019

Codecov Report

Merging #1037 into dev/gfdl will decrease coverage by 1.58%.
The diff coverage is 87.5%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1037      +/-   ##
============================================
- Coverage     45.12%   43.53%   -1.59%     
============================================
  Files           212      212              
  Lines         62486    62509      +23     
============================================
- Hits          28196    27216     -980     
- Misses        34290    35293    +1003
Impacted Files Coverage Δ
src/core/MOM_open_boundary.F90 31.35% <ø> (+0.11%) ⬆️
src/initialization/MOM_state_initialization.F90 13.03% <100%> (-18.54%) ⬇️
src/core/MOM.F90 69.4% <100%> (-0.09%) ⬇️
src/core/MOM_dynamics_split_RK2.F90 87.47% <75%> (ø) ⬆️
src/framework/MOM_horizontal_regridding.F90 0% <0%> (-55.11%) ⬇️
src/parameterizations/vertical/MOM_ALE_sponge.F90 0% <0%> (-29.32%) ⬇️
src/initialization/MOM_grid_initialize.F90 66.26% <0%> (-26.27%) ⬇️
src/equation_of_state/MOM_EOS_linear.F90 1.98% <0%> (-21.79%) ⬇️
src/core/MOM_CoriolisAdv.F90 49.2% <0%> (-10.87%) ⬇️
... and 18 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 3ea8609...1c17bc4. Read the comment docs.

@Hallberg-NOAA
Copy link
Collaborator Author

This PR was tested with https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/9428, which passed.

@kshedstrom
Copy link
Collaborator

I approve this PR.

@adcroft adcroft merged commit 0e0f6e9 into mom-ocean:dev/gfdl Nov 27, 2019
@Hallberg-NOAA Hallberg-NOAA deleted the revise_OBCs branch July 30, 2021 18:55
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.

4 participants