tdecrement contact counter for ice floe `j` too - Granular.jl - Julia package f… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4f7d6374e19b1e4a45133ccf7bacab1844bd883b | |
parent 75f7c215c492d93d62305404c6b005e11c76cb4a | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 |