commit 9b7021eaf1f85e78038bef777a1ec81b8b45934f
parent 654aed02c47cf6b501cf4135bfc4183de3348073
Author: Anders Damsgaard <andersd@riseup.net>
Date: Fri, 2 Jun 2017 12:52:44 -0400
do not write interactions between disabled particles to VTP file
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/io.jl b/src/io.jl
@@ -146,6 +146,11 @@ function writeIceFloeInteractionVTK(simulation::Simulation,
if simulation.ice_floes[i].contacts[ic] > 0
j = simulation.ice_floes[i].contacts[ic]
+ if !simulation.ice_floes[i].enabled ||
+ !simulation.ice_floes[j].enabled
+ continue
+ end
+
p = simulation.ice_floes[i].lin_pos -
simulation.ice_floes[j].lin_pos
dist = norm(p)