From ac9826b40021798ad3c207f526f64950bc293fb2 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 01 Jun 2016 15:56:32 +0000 Subject: [PATCH] Statistics.csv and ulm2.dat are being appended if simulations are restarting --- python/myTestConfig.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/python/myTestConfig.py b/python/myTestConfig.py old mode 100644 new mode 100755 index 79c4f51..7a90ea8 --- a/python/myTestConfig.py +++ b/python/myTestConfig.py @@ -1,12 +1,17 @@ +#!/usr/bin/python3 from trisurf import tsmgr from trisurf import trisurf + + +print("Running trisurf version "+ tsmgr.getTrisurfVersion()) #Simple example how to start simulation from a previos snapshot run1=trisurf.Runner(snapshot='snapshot.vtu') run1.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono")) run1.setSubdir("run0") + #Example how to start simulation from tape. Extra argument in runArgs will be passed to trisurf executable (meaning that simulation will always start from the beginning (bipyramid) ignoring the fact that some states may have been calculated already) run2=trisurf.Runner(tape='tape', runArgs=['--force-from-tape']) run2.setMaindir(("N","k","V","Np","Nm"),("nshell","xk0","constvolswitch","npoly","nmono")) -- Gitblit v1.9.3