Skip to content

Commit

Permalink
wraparound in state2obs
Browse files Browse the repository at this point in the history
  • Loading branch information
ggebbie committed Nov 3, 2021
1 parent 8403614 commit db0904a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TMI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,9 @@ function state2obs(cvec,wis,γ)
= tracerinit.wet)
c̃[γ.wet] = cvec
replace!(c̃,NaN=>0.0)
[ỹ[i] = c̃[wis[i]...]/sumwis[i] for i in 1:N]
cwrap = view(c̃,list,:,:)

[ỹ[i] = cwrap[wis[i]...]/sumwis[i] for i in eachindex(wis)]
return
end

Expand Down

0 comments on commit db0904a

Please sign in to comment.