Skip to content

Simplify set_grid_metrics_from_mosaic#127

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:simplify_set_metrics
May 27, 2022
Merged

Simplify set_grid_metrics_from_mosaic#127
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:simplify_set_metrics

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Simplified the code in set_grid_metrics_from_mosaic and set_coord_from_file
using the scale argument to MOM_read_data, eliminating several arrays that are
no longer needed. Also added a call to set RAD_EARTH via get_param for grids
where it is not otherwise set, replacing a hard-coded constant. The variable
G%Rad_Earth is used in a few places even in these cases, so it should be logged
as a run-time parameter. All answers are bitwise identical, although there are
new entries in some MOM_parameter_doc.all files.

  Simplified the code in set_grid_metrics_from_mosaic and set_coord_from_file
using the scale argument to MOM_read_data, eliminating several arrays that are
no longer needed.  Also added a call to set RAD_EARTH via get_param for grids
where it is not otherwise set, replacing a hard-coded constant.  The variable
G%Rad_Earth is used in a few places even in these cases, so it should be logged
as a run-time parameter.  All answers are bitwise identical, although there are
new entries in some MOM_parameter_doc.all files.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2022

Codecov Report

Merging #127 (b26a91b) into dev/gfdl (2b5b438) will decrease coverage by 0.01%.
The diff coverage is 92.30%.

@@             Coverage Diff              @@
##           dev/gfdl     #127      +/-   ##
============================================
- Coverage     33.47%   33.45%   -0.02%     
============================================
  Files           262      262              
  Lines         71400    71384      -16     
  Branches      13323    13323              
============================================
- Hits          23899    23884      -15     
+ Misses        43029    43028       -1     
  Partials       4472     4472              
Impacted Files Coverage Δ
src/initialization/MOM_coord_initialization.F90 51.76% <0.00%> (+0.30%) ⬆️
src/initialization/MOM_grid_initialize.F90 86.96% <100.00%> (-0.37%) ⬇️

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 2b5b438...b26a91b. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/jobs/78475 ✔️ 🟡

New parameter:

  • RAD_EARTH

@marshallward marshallward merged commit 8b51305 into NOAA-GFDL:dev/gfdl May 27, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the simplify_set_metrics branch July 16, 2022 09:42
kshedstrom pushed a commit to ESMG/MOM6 that referenced this pull request May 1, 2024
…in-20240228

update to main 20240228 commit
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