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

Merge branch 'openmpi-1.10.2' into 'master'

--allow-run-as-root needed for newer OpenMPI

See merge request !11
parents 0dab8bce 21c197ed
No related branches found
No related tags found
1 merge request!11--allow-run-as-root needed for newer OpenMPI
Pipeline #8255 passed
......@@ -12,6 +12,7 @@ import pkg_resources
from ellipsyswrapper.ellipsys_output import EllipSys1DOutput,EllipSys2DOutput, EllipSys3DOutput
from ellipsyswrapper.ellipsys_input import read_ellipsys_input
class CaseRunner(object):
def __init__(self, kwargs):
......@@ -49,7 +50,7 @@ class CaseRunner(object):
self.inputobj = read_ellipsys_input(os.path.join(self.directory, self.inputfile))
for inp in self.inputs:
self.inputobj.set_entry(inp.keys()[0], inp.values()[0])
if self.solver == 'ellipsys1d':
self._dim = 1
self.reg_data = EllipSys1DOutput(os.path.join(self.directory, self.project))
......@@ -180,7 +181,7 @@ class CaseRunner(object):
elif self.exec_mode == 'python':
t0 = time.time()
exepath = os.path.join(epath, self.flowfield)
command = 'mpirun -np %i python %s' % (self.nprocs, exepath)
command = 'mpirun --allow-run-as-root -np %i python %s' % (self.nprocs, exepath)
# out = commands.getoutput(command)
if self.debug:
status = subprocess.call(command, shell=True)
......@@ -198,7 +199,7 @@ class CaseRunner(object):
if self.flowfield == 'flowfield':
command = '%s' % (exepath)
else:
command = 'mpirun -np %i %s' % (self.nprocs, exepath)
command = 'mpirun --allow-run-as-root -np %i %s' % (self.nprocs, exepath)
# parallel computation
if self.debug:
status = subprocess.call(command, shell=True)
......
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