From a17e910df3b4849571e5ed9cf2a7767f1b461676 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Tue, 14 Jun 2016 18:30:55 +0000 Subject: [PATCH] Fixed restarting when inititer is not 0 --- python/trisurf/trisurf.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/trisurf/trisurf.py b/python/trisurf/trisurf.py index ddcb7f9..57d300d 100644 --- a/python/trisurf/trisurf.py +++ b/python/trisurf/trisurf.py @@ -350,7 +350,7 @@ return int(status) def isCompleted(self): - if (int(self.tape.getValue("iterations"))==self.getLastIteration()+1): + if int(self.tape.getValue("iterations"))+int(self.tape.getValue("inititer"))==self.getLastIteration()+1: return True else: return False @@ -493,7 +493,7 @@ def getLastVTU(self): - vtuidx=self.getLastIteration() + vtuidx=self.getLastIteration()-int(self.tape.getValue("inititer"))+1 if vtuidx<0: return None else: -- Gitblit v1.9.3