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 bug in stealth feature log-law drag #6056

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

cbegeman
Copy link
Contributor

@cbegeman cbegeman commented Nov 6, 2023

The indices of kineticEnergyCell in the log-law drag function raised an error on perlmutter with gnu, mpich debug=on. This PR fixes the indexing.

Migrated from E3SM-Ocean-Discussion#71.

Fixes #6055.

@cbegeman cbegeman added mpas-ocean bug fix PR BFB PR leaves answers BFB Stealth PR has feature which, if turned on, could change climate. fka FCC labels Nov 6, 2023
@cbegeman cbegeman requested a review from sbrus89 November 6, 2023 17:13
@cbegeman
Copy link
Contributor Author

cbegeman commented Nov 6, 2023

@sbrus89 and @jonbob This PR is not urgent.

Thanks, @gcapodag, for pointing out this bug.

Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

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

I agree with this fix. I looked carefully at the logic and loop extents, and also compiled the new code.

@cbegeman
Copy link
Contributor Author

cbegeman commented Nov 8, 2023

@mark-petersen Thanks for reviewing!

@gcapodag
Copy link
Contributor

@cbegeman I ran with the fix you made and the loglaw test now completes successfully on Perlmutter with Debug. Thanks!

@cbegeman
Copy link
Contributor Author

@gcapodag Thanks for testing and for uncovering this issue.

@cbegeman cbegeman removed the request for review from sbrus89 November 16, 2023 22:55
@cbegeman
Copy link
Contributor Author

@jonbob I think this has been sufficiently tested that we can move forward when you're ready. Absolutely no rush on this though.

@rljacob
Copy link
Member

rljacob commented Dec 7, 2023

notes: ready but low priority. In standalone tests.

jonbob added a commit that referenced this pull request Dec 14, 2023
Fix bug in stealth feature log-law drag

The indices of kineticEnergyCell in the log-law drag function raised an
error on perlmutter with gnu, mpich debug=on. This PR fixes the
indexing.

Fixes #6055

[BFB]
@jonbob
Copy link
Contributor

jonbob commented Dec 14, 2023

passes:

  • ERS_Ld5.T62_oQU120.CMPASO-NYF.chrysalis_intel
  • SMS_Ld1.ne30pg2_EC30to60E2r2.WCYCL1850.chrysalis_intel.allactive-wcprod_1850

merged to next

@jonbob jonbob merged commit 0fd6f76 into E3SM-Project:master Dec 15, 2023
@jonbob
Copy link
Contributor

jonbob commented Dec 15, 2023

merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB bug fix PR mpas-ocean Stealth PR has feature which, if turned on, could change climate. fka FCC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on perlmutter with stealth feature log-law drag
5 participants