Skip to content

Allow nlevgrnd less than nlevurb #674

@ekluzek

Description

@ekluzek

Brief summary of bug

There are some bits of code that address the nlevurb level of arrays that are dimensioned by nlevgrnd. Thus an implicit assumption that nlevgrnd >= nlevurb.

@olyson @barlage

General bug information

CTSM version you are using: ctsm1.0.dev031

Does this bug cause significantly incorrect results in the model's science? No
Configurations affected:
Non-standard configurations where you set nlevgrnd to be less than nlevurb.
We want to use this for the NWP configuration where we want to use 4 levels
with nlevurb being 5.

Details of bug

This dependence is especially true of the older simple building temperature. And we likely won't fix that. We should make sure the code aborts for that case though.

For newer cases, I think we can remove this dependence.

Metadata

Metadata

Labels

enhancementnew capability or improved behavior of existing capability

Type

No type

Projects

Status

Done (non release/external)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions