tAdd further testing of simulation status and grain plotting - Granular.jl - Ju… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 86027ed7180241fba3e5e0003cdc99b10e9b4607 | |
parent 43392ce28ad0683d549a4d3827bb3026eba66266 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 9 May 2018 16:00:46 -0400 | |
Add further testing of simulation status and grain plotting | |
Diffstat: | |
M test/grain.jl | 2 ++ | |
M test/vtk.jl | 1 + | |
2 files changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/test/grain.jl b/test/grain.jl | |
t@@ -51,6 +51,8 @@ if gnuplot | |
@test isfile("test-grain-size-distribution.png") | |
rm("test-grain-size-distribution.png") | |
@test_throws ErrorException Granular.plotGrainSizeDistribution(sim, size_t… | |
+ Compat.@info "Testing grain plotting " | |
+ Granular.plotGrains(sim) | |
end | |
Compat.@info "Testing external body force routines" | |
diff --git a/test/vtk.jl b/test/vtk.jl | |
t@@ -56,6 +56,7 @@ Granular.setTimeStep!(sim) | |
sim.file_number = 0 | |
Granular.run!(sim, single_step=true) | |
@test Granular.readSimulationStatus(sim.id) == 1 | |
+@test Granular.readSimulationStatus(sim) == 1 | |
Granular.setOutputFileInterval!(sim, 0.1) | |
Granular.run!(sim) | |