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

Skip building arrays for surface absorption when surface fluxes are disabled #6065

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

cbegeman
Copy link
Contributor

When both thickness and tracer surface fluxes are disabled with the config_disable_* flags, skip building the transmission coefficient arrays and related arrays.

@cbegeman cbegeman added MPAS-Ocean standalone Issues and features for standalone MPAS-Ocean code that dont impact E3SM. BFB PR leaves answers BFB labels Nov 14, 2023
@cbegeman
Copy link
Contributor Author

@jonbob and @mark-petersen No rush on this. It's just a small change that is convenient for certain standalone cases.

@rljacob
Copy link
Member

rljacob commented Dec 7, 2023

@mark-petersen please review when you can.

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.

This looks great. Thanks @cbegeman for your code improvement and attention to detail. I agree that the forcing arrays do not need to be built when surfaces fluxes are off. I also checked that the initialized arrays are not used anywhere else when either config_disable_thick_sflux or config_disable_tr_sflux are true.

@cbegeman
Copy link
Contributor Author

@mark-petersen Thank you for reviewing!

jonbob added a commit that referenced this pull request Jan 3, 2024
Skip building arrays for surface absorption when surface fluxes are disabled

When both thickness and tracer surface fluxes are disabled with the
config_disable_* flags, skip building the transmission coefficient
arrays and related arrays.

[BFB] mpaso standalone only
@jonbob
Copy link
Contributor

jonbob commented Jan 3, 2024

passes:

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

merged to next

@cbegeman
Copy link
Contributor Author

cbegeman commented Jan 3, 2024

@jonbob Thank you for your testing!

@jonbob jonbob merged commit 4ce0478 into E3SM-Project:master Jan 4, 2024
3 checks passed
@jonbob
Copy link
Contributor

jonbob commented Jan 4, 2024

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 MPAS-Ocean standalone Issues and features for standalone MPAS-Ocean code that dont impact E3SM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants