Skip to content
Snippets Groups Projects
Commit ecdc8c30 authored by Frederik Zahle's avatar Frederik Zahle
Browse files

added missing check for serial execution

parent 986b39da
No related branches found
No related tags found
1 merge request!8added missing check for serial execution
Pipeline #
...@@ -192,10 +192,14 @@ class CaseRunner(object): ...@@ -192,10 +192,14 @@ class CaseRunner(object):
elif self.exec_mode == 'shell': elif self.exec_mode == 'shell':
t0 = time.time() t0 = time.time()
exepath = os.path.join(epath, self.flowfield) 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: if self.debug:
status = subprocess.call(command, shell=True) status = subprocess.call(command, shell=True)
else: else:
command = 'mpirun -np %i %s' % (self.nprocs, exepath)
# Suppress output from EllipSys # Suppress output from EllipSys
FNULL = open(os.devnull, 'w') FNULL = open(os.devnull, 'w')
status = subprocess.call(command, shell=True,stdout=FNULL) status = subprocess.call(command, shell=True,stdout=FNULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment