tread simulation status from disk during paraview write if file_number==0 - Gra… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8ad24544c353406e588ac72e9f8a52d49de4611e | |
parent ff2b7c288e9f7df72799cbe67a5639ff6c36eb5e | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 16 Nov 2017 22:18:51 -0500 | |
read simulation status from disk during paraview write if file_number==0 | |
Diffstat: | |
M src/io.jl | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -690,6 +690,10 @@ function writeParaviewPythonScript(simulation::Simulation; | |
vtk_folder = string(pwd(), "/", simulation.id) | |
end | |
+ if simulation.file_number == 0 | |
+ simulation.file_number = readSimulationStatus(simulation) | |
+ end | |
+ | |
open(filename, "w") do f | |
write(f, """from paraview.simple import * | |
paraview.simple._DisableFirstRenderCameraReset() |