Skip to content

Add moist baroclinic wave atmosphere example#275

Draft
dkytezab wants to merge 175 commits into
glw/upfrom
dkz/atmosphere-example
Draft

Add moist baroclinic wave atmosphere example#275
dkytezab wants to merge 175 commits into
glw/upfrom
dkz/atmosphere-example

Conversation

@dkytezab
Copy link
Copy Markdown
Collaborator

Don't merge. Some hacking of environments needs to be done while we wait for upstream prs

@dkytezab dkytezab changed the title Initial commit Add moist barocpinic wave atmosphere example Mar 31, 2026
Comment thread src/moist_baroclinic_wave_model.jl Outdated
@dkytezab dkytezab changed the title Add moist barocpinic wave atmosphere example Add moist baroclinic wave atmosphere example Mar 31, 2026
@dkytezab
Copy link
Copy Markdown
Collaborator Author

dkytezab commented Apr 1, 2026

@giordano
Copy link
Copy Markdown
Collaborator

giordano commented Apr 1, 2026

I believe that'll be fixed by github.com/CliMA/ClimaSeaIce.jl/pull/127. Alternatively, temporarily pin ClimaSeaIce to v0.4.5

Comment thread Project.toml Outdated
Gregory LeClaire Wagner and others added 29 commits April 12, 2026 15:59
… path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…m NN kernel

The custom _nn_atmos_field_copy! kernel mapped N+1 source faces to N+1
target faces for Face+Bounded fields, using a different ratio than
InterpolateArray's N-to-N mapping. Replace with interpolate! which
handles Face/Center locations and coordinate mapping correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n conflicts

Keep atmosphere_coarsened_1536x768x64.jld2 IC path. Use upstream's cleaner
InterpolateArray(src_reactant, ...) call. Keep defensive microphysics guards.

Made-with: Cursor
The 1/8° source IC can contain small negative moisture values (min
~-1e-4) from bounds-preserving WENO during the source run. When
interpolated to a higher-resolution target grid and hit by the first
microphysics step, those negatives reliably produce NaN cells on
particular tiles, stopping the spinup at iteration 2.

Clamping ρqᵛ to ≥ 0 immediately after interpolation removes that root
cause. Applied in both the Reactant-based and vanilla IC loaders.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…/GB-25 into dkz/atmosphere-example

Made-with: Cursor

# Conflicts:
#	sharding/sharded_atmosphere_simulation_run.jl
Add commented out comms opts off compile_options
These dont seem to be necessary at least for sharding/sharded_atmosphere_simulation_run.jl
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.

7 participants