Granular.jl

Julia package for granular dynamics simulation
git clone git://src.adamsgaard.dk/Granular.jl
Log | Files | Refs | README | LICENSE

commit 18884f0b452d0133208e3a46eadb498a720197a9
parent b1928be804608f4c789c7ae455dc901ac5a2ff5b
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Thu, 25 May 2017 15:51:44 -0400

fix output file write occurrence across restarts

Diffstat:
Msrc/simulation.jl | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/simulation.jl b/src/simulation.jl @@ -85,8 +85,10 @@ function run!(simulation::Simulation; checkTimeParameters(simulation) - it_file = 0 - n_file_time_step =Int(round(simulation.file_time_step/simulation.time_step)) + it_file = Int(round(simulation.file_time_since_output_file/ + simulation.time_step)) + n_file_time_step = Int(round(simulation.file_time_step/ + simulation.time_step)) while simulation.time <= simulation.time_total @@ -132,8 +134,14 @@ function run!(simulation::Simulation; end export addIceFloe! -"Add an `icefloe` to the `simulation` object. If `verbose` is true, a short -confirmation message will be printed to stdout`." +""" + addIceFloe!(simulation::Simulation, + icefloe::IceFloeCylindrical, + verbose::Bool = False) + +Add an `icefloe` to the `simulation` object. If `verbose` is true, a short +confirmation message will be printed to stdout. +""" function addIceFloe!(simulation::Simulation, icefloe::IceFloeCylindrical, verbose::Bool = False)