tdecrement contact counter for ice floe `j` too - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4f7d6374e19b1e4a45133ccf7bacab1844bd883b
(DIR) parent 75f7c215c492d93d62305404c6b005e11c76cb4a
(HTM) Author: Anders Damsgaard <andersd@riseup.net>
Date: Wed, 10 May 2017 13:44:45 -0400
decrement contact counter for ice floe `j` too
Diffstat:
M src/interaction.jl | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/src/interaction.jl b/src/interaction.jl
t@@ -23,6 +23,7 @@ function interact!(simulation::Simulation)
simulation.ice_floes[i].contacts[ic] = 0 # remove contact
simulation.ice_floes[i].n_contacts -= 1
+ simulation.ice_floes[j].n_contacts -= 1
else
interactIceFloes!(simulation, i, j, ic)
end