mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
update mpi setting in another regression test
This commit is contained in:
parent
4f6001d574
commit
4010b32cff
1 changed files with 4 additions and 2 deletions
|
|
@ -49,12 +49,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