twrite full path for input files in paraview script - Granular.jl - Julia packa… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit be8afb80350f1c58198b1904265e1d0f022fdc14 | |
parent 7989b1cd4165aaa5a0dfb0c87773c76e9ad7f491 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 1 Nov 2017 10:58:48 -0400 | |
write full path for input files in paraview script | |
Diffstat: | |
M src/io.jl | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -662,7 +662,7 @@ Paraview), or from the interactive Python shell inside Par… | |
(blank) value, the script is named after the simulation id (`simulation.id… | |
* `folder::String`: output directory, current directory the default. | |
* `vtk_folder::String`: directory containing the VTK output files, by default | |
- `"./<simulation.id>/"`. | |
+ points to the full system path equivalent to `"./<simulation.id>/"`. | |
* `save_animation::Bool`: make the generated script immediately save a rendered | |
animation to disk when the `".py"` script is called. | |
* `verbose::Bool`: show diagnostic information during | |
t@@ -686,7 +686,7 @@ function writeParaviewPythonScript(simulation::Simulation; | |
filename = string(folder, "/", simulation.id, ".py") | |
end | |
if vtk_folder == "" | |
- vtk_folder = "." | |
+ vtk_folder = string(pwd(), "/", simulation.id) | |
end | |
open(filename, "w") do f | |
t@@ -904,7 +904,7 @@ FrameWindow=[0, $(simulation.file_number)]) | |
end | |
if verbose | |
info("$(filename) written, execute with " * | |
- "`cd $folder && pvpython $(simulation.id).py`") | |
+ "'pvpython $(folder)/$(simulation.id).py'") | |
end | |
end | |