tminor changes - granular-basin - tectonic deformation experiments with Granular.jl
 (HTM) git clone git://src.adamsgaard.dk/granular-basin
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit e7551ffbc0c55ae09a354a408e239246874e9b13
 (DIR) parent b25b069b8e26363f4cb22bdd8e44e2970cb53bdb
 (HTM) Author: esbenpalmstrom <esbenpalmstroem@gmail.com>
       Date:   Thu, 25 Nov 2021 14:18:23 +0100
       
       minor changes
       
       Diffstat:
         M init_basin.jl                       |      16 +++++++++-------
       
       1 file changed, 9 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/init_basin.jl b/init_basin.jl
       t@@ -204,19 +204,21 @@ for i = left_edge+(bot_r/2):bot_r*1.99:left_edge+length
                                        color = 1)
        end
        
       -for grain in sim.grains
       -        for ic=1:length(grain.contact_age)
       -                grain.contact_age[ic] = 1e16
       -        end
       -end
       -
        
        append!(sim.grains,carpet.grains) # add the carpet grains to the main simulation object
        # since the assignment will point to the carpet object, changes made to the carpet
        # object will appear in the main simulation object
        
        for grain in sim.grains
       -        grain.strength_heal_rate = 1 # new bond stengthening
       +    grain.contacts[:] .= 0
       +    grain.n_contacts = 0
       +end
       +
       +for grain in sim.grains
       +        for ic=1:size(grain.contact_age,1)
       +                grain.contact_age[ic] = 1e16
       +        end
       +    grain.strength_heal_rate = 1 # new bond stengthening
        end
        
        Granular.findContactsAllToAll!(carpet) # find the grain contacts