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

Main to dev #71

Merged
merged 5 commits into from
Feb 21, 2022
Merged

Main to dev #71

merged 5 commits into from
Feb 21, 2022

Conversation

marshallward
Copy link
Member

Merge of mom-ocean#1556 to dev/gfdl

marshallward and others added 4 commits February 8, 2022 12:47
The read_variable_2d function was previously configured to only run if
the start and nread arrays matched the size of the field they were
accessing.  This was incompatible with the history of the function,
which had previously required a fourth time axis (of one record), then
was later modified to not require this axis.  As a result, there are now
files in use both with and without a time axis.

This patch relaxes this check to ensure that the read is quasi-2d, i.e.
the first two axes can read a segment of a 2d field, but will now
reshape the start and nread arrays to match the field being read.  Some
additional checks are also added to ensure that it only reads one 2d
slice.
Pointers to the diabatic driver's energetic PBL field are now only
associated when `use_energetic_PBL` is true.

The `energetic_PBL` field was also renamed to `ePBL` to avoid potential
conflict with the `energetic_PBL` subroutine.

Thanks to Alper Altuntas for detecting this issue and the proposed fix.

Co-Authored-By: Alper Altuntas <[email protected]>
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #71 (712ff9e) into dev/gfdl (149073f) will decrease coverage by 0.00%.
The diff coverage is 30.90%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #71      +/-   ##
============================================
- Coverage     29.00%   29.00%   -0.01%     
============================================
  Files           244      244              
  Lines         71885    71921      +36     
============================================
+ Hits          20852    20861       +9     
- Misses        51033    51060      +27     
Impacted Files Coverage Δ
src/framework/MOM_io.F90 32.97% <30.43%> (-0.30%) ⬇️
...parameterizations/vertical/MOM_diabatic_driver.F90 38.80% <33.33%> (ø)

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 149073f...712ff9e. Read the comment docs.

@marshallward
Copy link
Member Author

marshallward commented Feb 18, 2022

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

Copy link
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.

This commit is already on the main branch, and it all seems reasonable. This has passed TC testing and pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/14820.

@Hallberg-NOAA Hallberg-NOAA merged commit 2e72b88 into dev/gfdl Feb 21, 2022
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