Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Aug 30, 2022
1 parent aa8546b commit 14d6ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ function ∫!(𝐼::Individuals,𝑇::Tuple)
if isa(sol,EnsembleSolution)
np=length(sol)
📌[:] = deepcopy([sol[i].u[end] for i in 1:np])
[update_location!(i,𝑃) for i in 𝐼.📌]
if isa(𝑃,𝐹_MeshArray3D)||isa(𝑃,𝐹_MeshArray2D)
[update_location!(i,𝑃) for i in 𝐼.📌]
end
else
nd=length(size(sol))
nd==3 ? 📌[:,:] = deepcopy(sol[:,:,end]) : 📌[:] = deepcopy(sol[:,end])
Expand Down
1 change: 0 additions & 1 deletion src/data_wrangling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function postprocess_MeshArray(sol,𝑃::FlowFields, 𝐷::NamedTuple; id=missin
x=sol[1,:]
y=sol[2,:]
fIndex=sol[end,:]
nf=1
end

𝑃.u0.grid.nFaces==1 ? fIndex=ones(size(x)) : nothing
Expand Down

0 comments on commit 14d6ce7

Please sign in to comment.