Skip to content

Registry allocates surface arrays based on new sfclayer package not PBL choice#1460

Open
dudhia wants to merge 1 commit into
MPAS-Dev:hotfix-v8.4.1from
dudhia:sfclayfix
Open

Registry allocates surface arrays based on new sfclayer package not PBL choice#1460
dudhia wants to merge 1 commit into
MPAS-Dev:hotfix-v8.4.1from
dudhia:sfclayfix

Conversation

@dudhia
Copy link
Copy Markdown
Collaborator

@dudhia dudhia commented May 26, 2026

When the LES options are run in real-data cases, the sfclayer physics is used but not the PBL physics.
Many (over 30) 2d arrays were allocated based on PBL packages when their true dependence is on the sfclayer package.
This caused a failure due to using unallocated arrays.
The fix is to create and use instead a sfclayer package in the Registry.
(Note: in development code PBL was on in namelist to enable these arrays but by-passed for LES options,
now we need PBL to be off when LES is chosen which could require a safety check).
This enables real-data LES applications to run.

@mgduda mgduda self-requested a review May 27, 2026 15:51
@mgduda mgduda changed the base branch from develop to hotfix-v8.4.1 June 4, 2026 22:48
…BL choice

When the LES options are run in real-data cases, the sfclayer physics is used
but not the PBL physics. Many (over 30) 2d arrays were allocated based on PBL
packages when their true dependence is on the sfclayer package. This caused a
failure due to using unallocated arrays. The fix is to create and use instead a
sfclayer package in the Registry.
@mgduda
Copy link
Copy Markdown
Contributor

mgduda commented Jun 6, 2026

@dudhia It seems that we may also need ch and qcg to be associated with the new sfclayer package if we would like to run with the MYNN surface layer scheme but not the MYNN PBL scheme. What do you think?

@dudhia
Copy link
Copy Markdown
Collaborator Author

dudhia commented Jun 6, 2026

@dudhia It seems that we may also need ch and qcg to be associated with the new sfclayer package if we would like to run with the MYNN surface layer scheme but not the MYNN PBL scheme. What do you think?

I agree. Did you see if there more needed with that sfclayer option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants