-
Notifications
You must be signed in to change notification settings - Fork 63
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
*Fix two bugs in convert_temp_salt_for_TEOS10 #560
*Fix two bugs in convert_temp_salt_for_TEOS10 #560
Conversation
Fixed two bugs on a single line of convert_temp_salt_for_TEOS10. The first bug was a reversal in the order of the temperature and salinity arguments to poTemp_to_consTemp, resulting in temperatures that closely approximate the salinities. The second bug that was fixed on this line was temperatures being rescaled with a factor that is appropriate for salinities. This bug-fix will change answers dramatically for any cases that use the ROQUET_RHO, ROQUET_SPV and TEOS10 equations of state and initialize the model with INIT_LAYERS_FROM_Z_FILE = True.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev/gfdl #560 +/- ##
=========================================
Coverage 37.21% 37.21%
=========================================
Files 271 271
Lines 80405 80405
Branches 14992 14992
=========================================
Hits 29925 29925
Misses 44919 44919
Partials 5561 5561 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hallberg-NOAA - I tested this fix in a candidate configuration of OM5. It corrects the initialization error caused by the improper ordering of arguments to poTemp_to_consTemp()
and not using the C_to_degC
scaling term for temperature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OBO @jkrasting
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/22237 ✔️ |
Fixed two bugs on a single line of
convert_temp_salt_for_TEOS10()
. The first bug was a reversal in the order of the temperature and salinity arguments topoTemp_to_consTemp()
, resulting in temperatures that closely approximate the salinities. The second bug that was fixed on this line was temperatures being rescaled with a factor that is appropriate for salinities. This bug-fix will change answers dramatically for any cases that use theROQUET_RHO
,ROQUET_SPV
andTEOS10
equations of state and initialize the model withINIT_LAYERS_FROM_Z_FILE = True
.