Skip to content

Commit

Permalink
change allow root position
Browse files Browse the repository at this point in the history
  • Loading branch information
sudheerad9 committed Jul 24, 2021
1 parent 92ace84 commit a540e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SirIsaac/fittingProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ def localFitToData_parallel(self,numprocs,fittingData,dataModel,

# call mpi
stdoutFile = open(prefix+"stdout.txt",'w')
subprocess.call([ "mpirun","-np","--allow-run-as-root",str(numprocs),"python",
subprocess.call([ "mpirun","-np",str(numprocs),"--allow-run-as-root","python",
os.path.join(SIRISAACDIR, "localFitParallel.py"),
inputDictFilename ],
stderr=stdoutFile,stdout=stdoutFile,env=os.environ)
Expand Down Expand Up @@ -2630,7 +2630,7 @@ def generateEnsemble_parallel(self,numprocs,dataModel,initialParameters,
# https://stackoverflow.com/questions/60060142/strange-interaction-
# between-h5py-subprocess-and-mpirun
stdoutFile = open(prefix+"stdout.txt",'w')
subprocess.call([ "mpirun","-np","--allow-run-as-root",str(numprocs),"python",
subprocess.call([ "mpirun","-np",str(numprocs),"--allow-run-as-root","python",
os.path.join(SIRISAACDIR, "generateEnsembleParallel.py"),
inputDictFilename ],
stderr=stdoutFile,stdout=stdoutFile,env=os.environ)
Expand Down

0 comments on commit a540e3e

Please sign in to comment.