Skip to content

Add Breeze integration test + compilable initialization of NestedModel - #756

Draft
dkytezab wants to merge 3 commits into
mainfrom
initialization
Draft

dkytezab wants to merge 3 commits into
mainfrom
initialization

Conversation

@dkytezab

@dkytezab dkytezab commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

WIP

@dkytezab

dkytezab commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator Author

Tracker: compiling the initialization of a NumericalEarth nested model on ReactantState

In draft PRs:

Without a draft PR yet. init = this PR's compiled initialization (synthetic parent); ERA5 = the same with an ERA5 pressure-level parent; window = compiling the time step afterwards.

repo item needed for state
NumericalEarth #812 set_region_data!: Missing-typed NetCDF slices (EnzymeAD/Reactant.jl#3569), reshaped slices (EnzymeAD/Reactant.jl#3204), the float type as a kernel argument (EnzymeAD/Reactant.jl#3570) ERA5 issue; NumericalEarth-side fixes on branch debug-nestedsim, mixed with other changes
NumericalEarth #813 column_fractional_z_index returns zeros under raising; convert(FT, clamp(kk, k_sfc, grid.Nz)) avoids it ERA5, window issue; one-line fix
NumericalEarth the nested step subtracts the parent's host clock time from the child's and branches on it (time_step!(::NestedModel)); the parent should tick on a device clock unconditionally window not filed
NumericalEarth printing a PrescribedAtmosphere on the device takes extrema over device views display goes with CliMA/Oceananigans.jl#6325
Oceananigans CliMA/Oceananigans.jl#6325 xnodes/ynodes, CliMA/Oceananigans.jl#6326 reduced-Field getindex, CliMA/Oceananigans.jl#6327 index_binary_search on ReactantState init (#6325, #6326), ERA5 (#6327) issues; fixes on one branch, not yet pushed
Reactant EnzymeAD/Reactant.jl#3204 reshape(::CuTracedArray) calls an undefined _derived_array; EnzymeAD/Reactant.jl#3569 Ops.constant recurses on an unsupported element type ERA5 (through #812) issues; #812's NumericalEarth-side fixes avoid both
Breeze acoustic RK3 cold start: stage 1 of step 1 builds the scalar tendencies from a zero transport velocity on ReactantState (first step only, small) window not filed; MWE ready
Enzyme-JAX raising a traced Bool kernel argument; reverse mode through a loop nested in one with a dynamic trip count window, gradients not filed; MWEs ready

Dropped: the Interpolated boundary's clock_time conversion (does not reproduce), and raising a loop with an early return (refused with a clear error, and CliMA/Oceananigans.jl#6327's fixed-trip search avoids it).

This branch has not been deployed

No deployments
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.

1 participant