Skip to content

Share local TM5 PBL layer geometry and warn on ERA5 ustar fallback - #182

Merged
cfranken merged 6 commits into
mainfrom
fix/pbl-shared-geometry-era5-ustar-warning
Nov 27, 2026
Merged

cfranken merged 6 commits into
mainfrom
fix/pbl-shared-geometry-era5-ustar-warning

Conversation

@cfranken

Copy link
Copy Markdown
Member

Summary

  • Write the local TM5 PBL closure’s hydrostatic layer thickness into the implicit diffusion workspace during the Kz refresh. Keep the existing Kz geometry and other diffusion schemes unchanged.
  • Warn once per ERA5 input source when direct friction velocity is absent and the reader uses the 10 m wind estimate. The fallback magnitude and instantaneous-field timing are unchanged.

Validation

627 assertions passed on Julia 1.12.6 (PBL fields, ERA5 surface reader, cubed-sphere runtime, and TM5 bldiff). The two-window runtime regression checks exchange strength, conservation, and refreshed layer thickness. The structure check passed and the code map was regenerated. GPU hardware and production tracer impacts were not tested.

Fixes #177.
Fixes #178.

Copilot AI balanced review requested due to automatic review settings November 26, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.66%. Comparing base (c89ed1e) to head (1bea895).

Files with missing lines Patch % Lines
src/Operators/Diffusion/window_kz_cache.jl 0.00% 4 Missing ⚠️
src/Operators/Diffusion/WindowPBLKzField.jl 88.88% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #182   +/-   ##
=======================================
  Coverage   88.66%   88.66%           
=======================================
  Files         342      342           
  Lines       37174    37185   +11     
=======================================
+ Hits        32959    32969   +10     
- Misses       4215     4216    +1     
Files with missing lines Coverage Δ
src/Models/Runner/driven_physics_refresh.jl 83.67% <100.00%> (+0.34%) ⬆️
src/Operators/Diffusion/pbl_physics.jl 99.20% <100.00%> (+<0.01%) ⬆️
...Preprocessing/PhysicsInputs/era5_surface_reader.jl 85.08% <100.00%> (+0.15%) ⬆️
src/Operators/Diffusion/WindowPBLKzField.jl 76.92% <88.88%> (+3.39%) ⬆️
src/Operators/Diffusion/window_kz_cache.jl 41.46% <0.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cfranken
cfranken merged commit 85e91b1 into main Nov 27, 2026
13 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

2 participants