Skip to content

Commit

Permalink
Merge pull request #3422 from CliMA/as/deepatmos-default
Browse files Browse the repository at this point in the history
Use deep atmosphere equations by default
  • Loading branch information
akshaysridhar authored Feb 6, 2025
2 parents b1aee7d + ec3a5a8 commit 5a0265b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Main
-------
### Features

### Update default configuration to use deep-atmosphere eqns, fix diagnostic bug
PR [3422](https://github.com/CliMA/ClimaAtmos.jl/pull/3422)
Updates the `default_config` to set `deep_atmosphere=true`, and updates the
`rv` relative vorticity diagnostic to store the curl of horizontal velocity.

### Allow different sizes of dust and sea salt for radiation

Added functionality to allow five different size bins of dust and sea salt aerosols
Expand All @@ -18,6 +23,7 @@ PR [3555](https://github.com/CliMA/ClimaAtmos.jl/pull/3555)
The option `FriersonDiffusion` is removed from `vert_diff` config. Use `DecayWithHeightDiffusion` instead.
PR [3592](https://github.com/CliMA/ClimaAtmos.jl/pull/3592)


v0.28.4
-------
### Development
Expand Down
4 changes: 2 additions & 2 deletions config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ log_progress:
help: "Log simulation progress, including wall-time estimates"
value: true
deep_atmosphere:
help: "If true, use deep atmosphere equations and metric terms, otherwise assume columns are cylindrical (shallow atmosphere) [`true`, `false` (default)]"
value: false
help: "If true, use deep atmosphere equations and metric terms, otherwise assume columns are cylindrical (shallow atmosphere) [`true` (default), `false`]"
value: true
restart_file:
help: "Path to HDF5 file to use as simulation starting point"
value: ~
Expand Down
1 change: 1 addition & 0 deletions config/model_configs/sphere_baroclinic_wave_rhoe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ initial_condition: "DryBaroclinicWave"
deep_atmosphere: true
dt: "400secs"
t_end: "10days"
deep_atmosphere: false
diagnostics:
- short_name: [pfull, ua, wa, va, rv, ta, ke]
period: 1days
Expand Down
4 changes: 3 additions & 1 deletion reproducibility_tests/ref_counter.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
212
213

# **README**
#
Expand All @@ -20,6 +20,8 @@


#=
213
- Update to deep-atmos eqns by default, fix vorticity diagnostic
212
- Update RRTMGP, which changes aerosol optics calculation
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/core_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ add_diagnostic_variable!(
units = "s^-1",
comments = "Vertical component of relative vorticity",
compute! = (out, state, cache, time) -> begin
vort = @. w_component.(Geometry.WVector.(cache.precomputed.ᶜu))
vort = @. w_component.(Geometry.WVector(curlₕ(cache.precomputed.ᶜu)))
# We need to ensure smoothness, so we call DSS
Spaces.weighted_dss!(vort)
if isnothing(out)
Expand Down

0 comments on commit 5a0265b

Please sign in to comment.