Skip to content

Commit

Permalink
Remove swap_space call from radiative conservation check
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriabarra committed Feb 13, 2023
1 parent 38ecc7e commit 8e488c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConservationChecker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function check_conservation!(
n_faces - half,
)

coupler_sim.fields.F_R_TOA .-=
swap_space!(LWd_TOA .+ SWd_TOA .- LWu_TOA .- SWu_TOA, boundary_space) .* coupler_sim.Δt_cpl
parent(coupler_sim.fields.F_R_TOA) .-= parent(LWd_TOA .+ SWd_TOA .- LWu_TOA .- SWu_TOA) .* coupler_sim.Δt_cpl

radiation_sources_accum = sum(coupler_sim.fields.F_R_TOA) # accumulated radiation sources + sinks [J]
push!(cc.toa_net_source, radiation_sources_accum)
else
Expand Down

0 comments on commit 8e488c8

Please sign in to comment.