tinform if ice floes are disabled in grid search - Granular.jl - Julia package … | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 98ffe310601baa387a4a01e7a8f394639cf5ebe2 | |
parent 3866de603b8d9a2d354078dc8ca8e7075be16b3f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 11 Sep 2017 16:08:47 -0400 | |
inform if ice floes are disabled in grid search | |
Diffstat: | |
M src/grid.jl | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/grid.jl b/src/grid.jl | |
t@@ -120,7 +120,7 @@ export sortIceFloesInGrid! | |
""" | |
Find ice-floe positions in grid, based on their center positions. | |
""" | |
-function sortIceFloesInGrid!(simulation::Simulation, grid::Any; verbose=false) | |
+function sortIceFloesInGrid!(simulation::Simulation, grid::Any; verbose=true) | |
if simulation.time_iteration == 0 | |
grid.ice_floe_list = | |
t@@ -203,6 +203,10 @@ function sortIceFloesInGrid!(simulation::Simulation, grid… | |
# remove ice floe if it is outside of the grid | |
if i == 0 && j == 0 | |
+ if verbose | |
+ info("Disabling ice floe $idx at pos (" * | |
+ "$(simulation.ice_floes[idx].lin_pos))") | |
+ end | |
disableIceFloe!(simulation, idx) | |
continue | |
end |