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

(*)Correct two rescaling bugs in MOM_EOS #272

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Corrected the pressure rescaling in calculate_density_second_derivs_scalar()that had been using an uninitialized variable. Also corrected the dimensional rescaling of dSVdT and dSVdS in calc_spec_vol_derivs_1d when temperature and salinity are being rescaled but density is not. Fortunately these do not seem to impact solutions in any production runs, and there do not appear to be any calls to calculate_density_second_derivs_scalar(). Comments were also added describing the units of a number of internal variables or conversion factor in the MOM_EOS module. All answers in the MOM6-examples test suite are bitwise identical.

Also added checksum calls for tv%varT, tv%varS and tv%covarTS to MOM_thermo_chksum when these elements of the thermovar type are associated.

  Corrected the pressure rescaling in calculate_density_second_derivs_scalar()
that had been using an uninitialized variable.  Also corrected the dimensional
rescaling of dSVdT and dSVdS in calc_spec_vol_derivs_1d when temperature and
salinity are being rescaled but density is not.  Fortunately these do not seem
to impact solutions in any production runs, and there do not appear to be any
calls to calculate_density_second_derivs_scalar().  Also added checksum calls
for tv%varT, tv%varS and tv%covarTS to MOM_thermo_chksum when these elements of
the thermovar type are associated.  Comments were also added describing the
units of a number of internal variables or conversion factor in the MOM_EOS
module.  All answers in the MOM6-examples test suite are bitwise identical.
@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working documentation Improvements or additions to documentation labels Dec 8, 2022
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #272 (632f07e) into dev/gfdl (8de33f9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##           dev/gfdl     #272      +/-   ##
============================================
- Coverage     37.12%   37.11%   -0.01%     
============================================
  Files           263      263              
  Lines         73441    73453      +12     
  Branches      13676    13679       +3     
============================================
- Hits          27266    27264       -2     
- Misses        41150    41160      +10     
- Partials       5025     5029       +4     
Impacted Files Coverage Δ
src/core/MOM_checksum_packages.F90 32.59% <0.00%> (-1.00%) ⬇️
src/equation_of_state/MOM_EOS.F90 23.55% <0.00%> (-0.35%) ⬇️
src/framework/MOM_document.F90 74.33% <0.00%> (-0.45%) ⬇️

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

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit b2ba9d9 into NOAA-GFDL:dev/gfdl Dec 19, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the second_derivs_scalar_fix branch February 2, 2023 13:41
marshallward pushed a commit that referenced this pull request Apr 9, 2024
Make the US argument to MOM_domains_init optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants