tdisable ice floes outside grid - 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 764f9a160974b94ffec0b0572a0bcdc2cbc49336
 (DIR) parent 123a1615b1ad0448e9392e31f54a0f857a19f415
 (HTM) Author: Anders Damsgaard <andersd@riseup.net>
       Date:   Mon,  1 May 2017 10:13:26 -0400
       
       disable ice floes outside grid
       
       Diffstat:
         M src/grid.jl                         |       3 +--
         M src/simulation.jl                   |       2 +-
       
       2 files changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/grid.jl b/src/grid.jl
       t@@ -52,8 +52,7 @@ function sortIceFloesInOceanGrid!(simulation::Simulation; verbose=false)
        
                # remove ice floe if it is outside of the grid
                if i == 0 && j == 0
       -export removeIceFloe!
       -
       +            disableIceFloe(simulation, idx)
                end
        
                # add cell to ice floe
 (DIR) diff --git a/src/simulation.jl b/src/simulation.jl
       t@@ -168,7 +168,7 @@ function disableIceFloe!(simulation::Simulation, i::Integer)
                error("Index must be greater than 0 (i = $i)")
            end
        
       -    simulation.ice_floes
       +    simulation.ice_floes[i].enable = false
        end
        
        export zeroForcesAndTorques!