mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed MPI exec error for TestHarness #402
This commit is contained in:
parent
647d39f41e
commit
09546c2276
4 changed files with 3 additions and 3 deletions
BIN
tests/.testing_harness.py.swp
Normal file
BIN
tests/.testing_harness.py.swp
Normal file
Binary file not shown.
|
|
@ -67,7 +67,7 @@ class SourceFileTestHarness(TestHarness):
|
|||
def _run_openmc_restart(self):
|
||||
# Get the number of MPI processes.
|
||||
if self._opts.mpi_exec:
|
||||
mpi_procs = self._opts.mpi_np
|
||||
mpi_procs = int(self._opts.mpi_np)
|
||||
else:
|
||||
mpi_procs = 1
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class StatepointRestartTestHarness(TestHarness):
|
|||
def _run_openmc_restart(self):
|
||||
# Get the number of MPI processes.
|
||||
if self._opts.mpi_exec:
|
||||
mpi_procs = self._opts.mpi_np
|
||||
mpi_procs = int(self._opts.mpi_np)
|
||||
else:
|
||||
mpi_procs = 1
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class TestHarness(object):
|
|||
|
||||
def _run_openmc(self):
|
||||
if self._opts.mpi_exec:
|
||||
mpi_procs = self._opts.mpi_np
|
||||
mpi_procs = int(self._opts.mpi_np)
|
||||
else:
|
||||
mpi_procs = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue