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

(*)Eliminate IIm1 and JJm1 in Update_Stokes_Drift #573

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Replaced the IIm1 and JJm1 variables in Update_Stokes_Drift() with I-1 and J-1 . The previous expressions could give incorrect solutions at the southern and western edges of the global domain with global indexing and serve no purpose when global indexing is not used. In addition, the i-, j- and k- index variables in Update_Surface_Waves(), Update_Stokes_Drift(), get_Langmuir_Number() and Get_SL_Average_Prof() were changed from ii to i, jj to j, and kk to k to follow the patterns used elsewhere in the MOM_wave_interface module and throughout the rest of the MOM6 code. All answers are bitwise identical in cases that do not use global indexing.

  Replaced the IIm1 and JJm1 variables in Update_Stokes_Drift with 'I-1' and
'J-1' in Update_Stokes_Drift.  The previous expressions could give incorrect
solutions at the southern and western edges of the global domain with global
indexing and serve no purpose when global indexing is not used.  In addition,
the i-, j- and k- index variables in Update_Surface_Waves, Update_Stokes_Drift,
get_Langmuir_Number and Get_SL_Average_Prof were changed from ii to i, jj to j,
and kk to k to follow the patterns used elsewhere in the MOM_wave_interface
module and throughout the rest of the MOM6 code.  All answers are bitwise
identical in cases that do not use global indexing.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.14%. Comparing base (611f575) to head (a9fd4f2).

Additional details and impacted files
@@            Coverage Diff            @@
##           dev/gfdl     #573   +/-   ##
=========================================
  Coverage     37.14%   37.14%           
=========================================
  Files           271      271           
  Lines         80734    80723   -11     
  Branches      15061    15061           
=========================================
  Hits          29986    29986           
+ Misses        45151    45140   -11     
  Partials       5597     5597           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 2bc04bd into NOAA-GFDL:dev/gfdl Mar 13, 2024
12 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the wave_interface_index_fix branch May 10, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants