tdo not write interactions between disabled particles to VTP file - Granular.jl… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9b7021eaf1f85e78038bef777a1ec81b8b45934f | |
parent 654aed02c47cf6b501cf4135bfc4183de3348073 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 2 Jun 2017 12:52:44 -0400 | |
do not write interactions between disabled particles to VTP file | |
Diffstat: | |
M src/io.jl | 5 +++++ | |
1 file changed, 5 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -146,6 +146,11 @@ function writeIceFloeInteractionVTK(simulation::Simulatio… | |
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) |