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

+Add fluxes%tau_mag and forces%tau_mag #384

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

Hallberg-NOAA
Copy link
Member

Add new allocatable tau_mag arrays to the forcing and mech_forcing types to hold the magnitude of the wind stresses including gustiness contributions. There is also a new tau_mag diagnostic. This same information in tau_mag is being transformed into ustar, but these changes avoid division by the Boussinesq reference density (GV%Rho0), and allow for a more accurate calculation of derived fields when in non-Boussinesq mode, without having to multiply and divide by GV%Rho0. There is also a new optional tau_mag argument to extract_IOB_stresses to support these changes. These new arrays are not being used yet in the MOM6 solutions, but they are being allocated and populated in the routines that set the ustar fields, and they have been tested in changes to the modules that use ustar that will come in a subsequent commit. This commit also adds the new RLZ_T2_to_Pa element to the unit_scale_type to undo the scaling of wind stresses and it makes use of it in some of the new code. All answers are bitwise identical, but there are new arrays or elements in three transparent public types.

  Add new allocatable tau_mag arrays to the forcing and mech_forcing types to
hold the magnitude of the wind stresses including gustiness contributions.
There is also a new tau_mag diagnostic.  This same information in tau_mag is
being transformed into ustar, but these changes avoid division by the Boussinesq
reference density (GV%Rho0), and allow for a more accurate calculation of
derived fields when in non-Boussinesq mode, without having to multiply and
divide by GV%Rho0.  There is also a new optional tau_mag argument to
extract_IOB_stresses to support these changes.  These new arrays are not being
used yet in the MOM6 solutions, but they are being allocated and populated in
the routines that set the ustar fields, and they have been tested in changes to
the modules that use ustar that will come in a subsequent commit. This commit
also adds the new RLZ_T2_to_Pa element to the unit_scale_type to undo the
scaling of wind stresses and it makes use of it in some of the new code.  All
answers are bitwise identical, but there are new arrays or elements in three
transparent public types.
@Hallberg-NOAA Hallberg-NOAA added the enhancement New feature or request label Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #384 (061eb48) into dev/gfdl (cd16647) will decrease coverage by 0.02%.
The diff coverage is 20.89%.

❗ Current head 061eb48 differs from pull request most recent head f9764f5. Consider uploading reports for the commit f9764f5 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #384      +/-   ##
============================================
- Coverage     38.22%   38.21%   -0.02%     
============================================
  Files           269      269              
  Lines         76354    76403      +49     
  Branches      14022    14031       +9     
============================================
+ Hits          29189    29200      +11     
- Misses        41929    41960      +31     
- Partials       5236     5243       +7     
Impacted Files Coverage Δ
...g_src/drivers/solo_driver/user_surface_forcing.F90 0.00% <0.00%> (ø)
...ig_src/drivers/solo_driver/MOM_surface_forcing.F90 24.04% <11.53%> (-0.35%) ⬇️
src/core/MOM_forcing_type.F90 41.97% <25.00%> (-0.21%) ⬇️
src/core/MOM.F90 51.36% <50.00%> (-0.01%) ⬇️
src/framework/MOM_unit_scaling.F90 52.83% <100.00%> (+0.44%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@theresa-cordero theresa-cordero left a comment

Choose a reason for hiding this comment

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

Changes are consistent with what is described in the summary.

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 70a75ff into NOAA-GFDL:dev/gfdl Jun 28, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the add_tau_mag branch November 8, 2023 23:13
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.

3 participants