mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
updated method for setting mpi for regression tests
This commit is contained in:
parent
20a18398bf
commit
4f6001d574
1 changed files with 4 additions and 2 deletions
|
|
@ -33,12 +33,14 @@ def cpp_driver(request):
|
|||
os.chdir(str(local_builddir))
|
||||
|
||||
if config['mpi']:
|
||||
os.environ['CXX'] = 'mpicxx'
|
||||
mpi_arg = "On"
|
||||
else:
|
||||
mpi_arg = "Off"
|
||||
|
||||
try:
|
||||
print("Building driver")
|
||||
# Run cmake/make to build the shared libary
|
||||
subprocess.run(['cmake', os.path.pardir], check=True)
|
||||
subprocess.run(['cmake', os.path.pardir, '-DOPENMC_USE_MPI=' + mpi_arg], check=True)
|
||||
subprocess.run(['make'], check=True)
|
||||
os.chdir(os.path.pardir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue