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

+(*)Fix wave_speed_init mono_N2_depth bug #413

Conversation

Hallberg-NOAA
Copy link
Member

Fixed a bug in which wave_speed_init was effectively discarding any values of mono_N2_depth passed to it via the optional argument mono_N2_depth, but also changed the default value of RESOLN_N2_FILTER_DEPTH, which was previously being discarded, to disable the monotonization and replicate the previous results. There were also clarifying additions made to the description how to disable RESOLN_N2_FILTER_DEPTH. This will change some entries in MOM_parameter_doc files, and it will change solutions in cases that set RESOLN_N2_FILTER_DEPTH to a non-default value and have parameter settings that use the resolution function to scale their horizontal mixing. There are, however, no known active simulations where the answers are expected to change.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working answer-changing A change in results (actual or potential) Parameter change Input parameter changes (addition, removal, or description) labels Jul 20, 2023
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #413 (4e9bfdf) into dev/gfdl (b9c7c86) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 4e9bfdf differs from pull request most recent head 1e03e98. Consider uploading reports for the commit 1e03e98 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #413      +/-   ##
============================================
- Coverage     38.17%   38.17%   -0.01%     
============================================
  Files           269      269              
  Lines         76553    76553              
  Branches      14076    14076              
============================================
- Hits          29226    29225       -1     
- Misses        42077    42079       +2     
+ Partials       5250     5249       -1     
Impacted Files Coverage Δ
src/diagnostics/MOM_wave_speed.F90 37.50% <ø> (+0.15%) ⬆️
...eterizations/lateral/MOM_lateral_mixing_coeffs.F90 42.64% <0.00%> (ø)

... and 1 file with indirect coverage changes

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

@Hallberg-NOAA Hallberg-NOAA force-pushed the wave_speed_init_mono_depth_bugfix branch from 5cbccda to 6206aea Compare July 20, 2023 13:06
Copy link
Member

@adcroft adcroft left a comment

Choose a reason for hiding this comment

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

Seems right. Needs testing...

  Fixed a bug in which wave_speed_init was effectively discarding any values of
mono_N2_depth passed to it via the optional argument mono_N2_depth, but also
changed the default value of RESOLN_N2_FILTER_DEPTH, which was previously being
discarded, to disable the monotonization and replicate the previous results.
There were also clarifying additions made to the description how to disable
RESOLN_N2_FILTER_DEPTH.  This will change some entries in MOM_parameter_doc
files, and it will change solutions in cases that set RESOLN_N2_FILTER_DEPTH to
a non-default value and have parameter settings that use the resolution function
to scale their horizontal mixing.  There are, however, no known active
simulations where the answers are expected to change.
@Hallberg-NOAA Hallberg-NOAA force-pushed the wave_speed_init_mono_depth_bugfix branch from 6206aea to ed0a9d1 Compare July 24, 2023 09:34
@marshallward
Copy link
Member

@marshallward marshallward merged commit ccd3ded into NOAA-GFDL:dev/gfdl Jul 24, 2023
10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the wave_speed_init_mono_depth_bugfix branch August 23, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-changing A change in results (actual or potential) bug Something isn't working Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants