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

Ocean bugfix to allow users to disable tracer tendencies with RK4 time integrator #5519

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

cbegeman
Copy link
Contributor

@cbegeman cbegeman commented Mar 10, 2023

In the case where config_disable_tr_all_tend = .true. and config_time_integrator = 'RK4':

  1. We enforce no time updates to active tracers (b4e9ec1).
  2. We also completely bypass the RK4 tracer tendency update (as opposed to just the update within ocn_tend_tracer), which saves a little time (b4e9ec1).

In principle, only (2) would be needed, but we find that there is contamination of the tracer fields without (1) that leads to model crashes.

We find that after these changes, model runtimes are still ~30% faster when tracers are disabled.

Fixes #5518

[BFB]

@xylar
Copy link
Contributor

xylar commented Mar 10, 2023

@cbegeman I'll do some "do-no-harm" testing in compass.

@sbrus89, could you verify the dam-break fix?

Copy link
Contributor

@xylar xylar left a comment

Choose a reason for hiding this comment

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

The pr test suite on Chrysalis with this branch was bit-for-bit with master.

@cbegeman
Copy link
Contributor Author

@sbrus89 It seems from your comment #5418 (comment) that you have already verified that this works with the dam break test. Did you want to do any more testing before approving?

Copy link
Contributor

@sbrus89 sbrus89 left a comment

Choose a reason for hiding this comment

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

@cbegeman, yes this works with the dam break test. Thanks for this!

@cbegeman
Copy link
Contributor Author

@sbrus89 Thanks for the review and testing!

@jonbob This is also now ready for E3SM testing. Thanks!

jonbob added a commit that referenced this pull request Mar 30, 2023
Ocean bugfix to allow users to disable tracer tendencies with RK4

In the case where `config_disable_tr_all_tend = .true.` and
`config_time_integrator = 'RK4'`:
1. We enforce no time updates to active tracers
2. We also completely bypass the RK4 tracer tendency update (as opposed
   to just the update within `ocn_tend_tracer`), which saves a little
   time
In principle, only (2) would be needed, but we find that there is
contamination of the tracer fields without (1) that leads to model
crashes. We find that after these changes, model runtimes are still
~30% faster when tracers are disabled.

Fixes #5518

[BFB]
@jonbob
Copy link
Contributor

jonbob commented Mar 30, 2023

passes:

  • SMS_D_Ld3.T62_oQU120.CMPASO-IAF.chrysalis_intel
  • ERS.ne11_oQU240.WCYCL1850NS.chrysalis_intel
  • SMS_D_Ld1.ne30pg2_EC30to60E2r2.WCYCL1850.chrysalis_intel.allactive-wcprod

merged to next

@jonbob jonbob merged commit b4d5b10 into E3SM-Project:master Mar 31, 2023
@jonbob
Copy link
Contributor

jonbob commented Mar 31, 2023

merged to master

xylar added a commit to xylar/compass that referenced this pull request Apr 2, 2023
This merge updates the E3SM-Project submodule from [c9201a4](https://github.com/E3SM-Project/E3SM/tree/c9201a4f44540bb74cb3650e32bcbe27fb762ab1) to [b4d5b10600](https://github.com/E3SM-Project/E3SM/tree/b4d5b10600).

This update includes the following MPAS-Ocean and MPAS-Frameworks PRs (check mark indicates bit-for-bit with previous PR in the list):
- [ ]  (ocn) E3SM-Project/E3SM#5254
- [ ]  (fwk) E3SM-Project/E3SM#5490
- [ ]  (ocn) E3SM-Project/E3SM#5541
- [ ]  (fwk) E3SM-Project/E3SM#5498
- [ ]  (ocn) E3SM-Project/E3SM#5564
- [ ]  (ocn) E3SM-Project/E3SM#5553
- [ ]  (ocn) E3SM-Project/E3SM#5519
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable tracer tendency flag broken for RK4 time integrator
4 participants