Skip to content

Commit

Permalink
add different aerosol types to radiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jul 10, 2024
1 parent 89c6818 commit 134a47a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ ClimaAtmos.jl Release Notes

Main
-------
- ![][badge-🔥behavioralΔ] Switch from `Dierckz` to `Interpolations`. `Interpolations`
- ![][badge-🔥behavioralΔ] Switch from `Dierkcz` to `Interpolations`. `Interpolations`
is type-stable and GPU compatible. The order of interpolation has decreased to first.
PR [#3169](https://github.com/CliMA/ClimaAtmos.jl/pull/3169)
- Allow different aerosol types for radiation.
PR [#3180](https://github.com/CliMA/ClimaAtmos.jl/pull/3180)


v0.27.0
-------
Expand Down
5 changes: 3 additions & 2 deletions src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ function set_aerosol_type(;
OC2 = 0,
_...,
)
return argmax(n -> (DST01, SSLT01, SO4, CB1, CB2, OC1, OC2)[n], 1:7)
_, index = findmax((DST01, SSLT01, SO4, CB1, CB2, OC1, OC2))
return index
end
set_aerosol_type(nt) = set_aerosol_type(; nt...)
set_aerosol_type(NT) = set_aerosol_type(; NT...)

NVTX.@annotate function save_state_to_disk_func(integrator, output_dir)
(; t, u, p) = integrator
Expand Down

0 comments on commit 134a47a

Please sign in to comment.