Skip to content

Commit

Permalink
Update src/callbacks/callbacks.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Zhaoyi Shen <[email protected]>
  • Loading branch information
cmschmitt519 and szy21 authored Jun 27, 2024
1 parent dbbe5b9 commit 37b481f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ NVTX.@annotate function rrtmgp_model_callback!(integrator)
end
end

set_insolation_variables!(Y, p, t, p.atmos.insolation)
if p.atmos.insolation isa IdealizedInsolation || !(p.atmos.surface_albedo isa CouplerAlbedo)
set_insolation_variables!(Y, p, t, p.atmos.insolation)
end

if !idealized_clouds && !(
radiation_mode isa RRTMGPI.GrayRadiation ||
Expand Down

0 comments on commit 37b481f

Please sign in to comment.