Skip to content

Fix H/Z dimensional inconsistency in TAPER_LEITHY depth tapering#427

Merged
alperaltuntas merged 1 commit into
NCAR:dev/ncarfrom
alperaltuntas:fix_dimcs_TAPER_LEITHY
Apr 27, 2026
Merged

Fix H/Z dimensional inconsistency in TAPER_LEITHY depth tapering#427
alperaltuntas merged 1 commit into
NCAR:dev/ncarfrom
alperaltuntas:fix_dimcs_TAPER_LEITHY

Conversation

@alperaltuntas
Copy link
Copy Markdown
Member

zc was declared [Z ~> m] but filled from h [H ~> m or kg m-2], so the comparison against CS%leithy_depth / CS%leithy_width (both [Z]) mixed units. To fix this, we convert h to dz via thickness_to_dz before accumulating zc.

Fixes: #426

zc was declared [Z ~> m] but filled from h [H ~> m or kg m-2], so the
comparison against CS%leithy_depth / CS%leithy_width (both [Z]) mixed
units. To fix this, we convert h to dz via thickness_to_dz before accumulating zc.
Copy link
Copy Markdown
Collaborator

@iangrooms iangrooms left a comment

Choose a reason for hiding this comment

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

Thanks for finding and fixing, as well as adding the do loops

@alperaltuntas alperaltuntas merged commit c7d8c5c into NCAR:dev/ncar Apr 27, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TAPER_LEITHY depth tapering uses h (thickness units) where Z (height units) is required

3 participants