Skip to content

Fix to reading of partial OBCs from file.#164

Merged
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
ESMG:dev/esmg
Jul 15, 2022
Merged

Fix to reading of partial OBCs from file.#164
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
ESMG:dev/esmg

Conversation

@kshedstrom
Copy link
Copy Markdown

Fix to issue #163

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 13, 2022

Codecov Report

Merging #164 (48875ea) into dev/gfdl (43771d8) will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           dev/gfdl     #164   +/-   ##
=========================================
  Coverage     34.01%   34.01%           
=========================================
  Files           259      259           
  Lines         70209    70209           
  Branches      13012    13012           
=========================================
  Hits          23884    23884           
  Misses        41826    41826           
  Partials       4499     4499           
Impacted Files Coverage Δ
src/core/MOM_open_boundary.F90 22.96% <0.00%> (ø)

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 43771d8...48875ea. Read the comment docs.

Copy link
Copy Markdown
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have examined these changes, and I think that I understand what they are doing.

These expressions now have become very long, and could be simplified and made easier to understand and perhaps facilitate future modifications by defining new variables, like j_file_off = G%jdg_offset - segment%HI%Jsgb (and similarly for i_file_off) or else to define variables like js_obc_file = js_obc + G%jdg_offset - segment%HI%Jsgb (and similarly for je_obc_file, is_obc_file and ie_obc_file) at about line 3740 of this file. However, these simplifications could be made in a future change, after this PR has been merged into the code.

@marshallward
Copy link
Copy Markdown
Member

This is from dev/esmg, so this commit needs to be merge-commited.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit 9a3aa1e into NOAA-GFDL:dev/gfdl Jul 15, 2022
marshallward pushed a commit that referenced this pull request Jul 27, 2022
* Add a variable to shorten some statements

- suggested by @Hallberg-NOAA in the discussion for #164

* Fix to small i/j error
marshallward pushed a commit that referenced this pull request Mar 12, 2026
Move computation of tmp_h inside the if G%mask2dT test to avoid divide by zero error
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