Skip to content
Snippets Groups Projects

access wrong iterator

Merged Jonas Isensee requested to merge jisense-dev-patch-17001 into dev
1 unresolved thread
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -113,13 +113,13 @@ function propagate!(sim::Simulation, dt)
iter2 = alldynamicobjects(sim)
if isthreaded(sim)
Threads.@threads for n in eachindex(iter2)
particle = iter[n]
particle = iter2[n]
fold_back!(particle, sim.domain)
reset!(particle, sim)
end
else
for n in eachindex(iter2)
particle = iter[n]
particle = iter2[n]
fold_back!(particle, sim.domain)
reset!(particle, sim)
end
Loading