From ecdc8c309c254e40ee3a98b5e74b7f1e86948d1c Mon Sep 17 00:00:00 2001 From: fzahle <frza@dtu.dk> Date: Tue, 10 Apr 2018 09:39:32 +0200 Subject: [PATCH] added missing check for serial execution --- ellipsyswrapper/testsuite.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ellipsyswrapper/testsuite.py b/ellipsyswrapper/testsuite.py index 01afdf3..c1b4733 100644 --- a/ellipsyswrapper/testsuite.py +++ b/ellipsyswrapper/testsuite.py @@ -192,10 +192,14 @@ class CaseRunner(object): elif self.exec_mode == 'shell': t0 = time.time() exepath = os.path.join(epath, self.flowfield) - command = 'mpirun -np %i %s' % (self.nprocs, exepath) + # serial computation + if self.flowfield == 'flowfield': + command = '%s' % (exepath) + # parallel computation if self.debug: status = subprocess.call(command, shell=True) else: + command = 'mpirun -np %i %s' % (self.nprocs, exepath) # Suppress output from EllipSys FNULL = open(os.devnull, 'w') status = subprocess.call(command, shell=True,stdout=FNULL) -- GitLab