Skip to content

Option to homogenize forces and fluxes#51

Merged
Hallberg-NOAA merged 10 commits into
NOAA-GFDL:dev/gfdlfrom
breichl:user/bgr/Homogenize_forces_and_fluxes
Jan 3, 2022
Merged

Option to homogenize forces and fluxes#51
Hallberg-NOAA merged 10 commits into
NOAA-GFDL:dev/gfdlfrom
breichl:user/bgr/Homogenize_forces_and_fluxes

Conversation

@breichl
Copy link
Copy Markdown

@breichl breichl commented Dec 23, 2021

This is the continuation of github.com/mom-ocean/MOM6/pull/1541, which was closed when migrating from NOAA-GFDL to mom-ocean. There are a couple extra changes since that PR was closed, including updating code, updating the homogenization routine to account for updated code, and a typo on the mask on U points.

  • Adds functions to do global averages on U and V grids in MOM_spatial_means
  • Adds functionality to average all forcing and fluxes fields in MOM_forcing_types
  • Adds flag to average all forcing and fluxes in MOM.F90
  • This new feature is primarily for running in single column like configurations with the coupler, which requires perfectly equal forcing across all cells.

brandon.reichl added 7 commits November 8, 2021 16:51
- Adds functions to do global averages on U and V grids in MOM_spatial_means
- Adds functionality to average all forcing and fluxes fields in MOM_forcing_types
- Adds flag to average all forcing and fluxes in MOM.F90
- This new feature is primarily for running in single column like configurations with the coupler, which requires perfectly equal forcing across all cells.
- Adds in irho0 and sqrt that were missing in homogenize mech forcing.
- Correct issues in global_area_mean_u and global_area_mean_v to work with symmetric and rotated grids.
- Add options to compute mean ustar or compute ustar from mean tau.
- Add subroutines to replace averaging blocks in MOM_forcing_type.
- Move a division and reformat alignment in MOM_spatial_means.F90.
- Remove a unused parameter in MOM_forcing_type.F90
- Reformat misalignment of an "if-block" in MOM_forcing_type.F90
- netSalt has been removed so no longer needs homogenized in the fluxes.
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 23, 2021

Codecov Report

Merging #51 (1d70645) into dev/gfdl (71cf831) will decrease coverage by 0.06%.
The diff coverage is 1.85%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #51      +/-   ##
============================================
- Coverage     28.91%   28.85%   -0.07%     
============================================
  Files           242      242              
  Lines         71260    71422     +162     
============================================
+ Hits          20606    20609       +3     
- Misses        50654    50813     +159     
Impacted Files Coverage Δ
src/core/MOM_forcing_type.F90 43.05% <0.00%> (-4.21%) ⬇️
src/diagnostics/MOM_spatial_means.F90 11.98% <0.00%> (-1.49%) ⬇️
src/core/MOM.F90 58.62% <37.50%> (-0.12%) ⬇️

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 71cf831...1d70645. Read the comment docs.

Comment thread src/core/MOM.F90
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 looked through these changes thoroughly, and I agree that they appear to be correct and thoughtfully implemented. I am approving these changes, and they should be merged in as soon as they have passed the TC and pipeline testing.

@Hallberg-NOAA
Copy link
Copy Markdown
Member

This PR has passed TC testing and pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/14473, but there are new entries in the MOM_parameter_doc.all files, which will have to be updated.

@Hallberg-NOAA Hallberg-NOAA merged commit 2d32631 into NOAA-GFDL:dev/gfdl Jan 3, 2022
@Hallberg-NOAA Hallberg-NOAA added the enhancement New feature or request label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants