mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Make sure non-PHDF5 builds turn off prefer_parallel
This commit is contained in:
parent
ea15a93104
commit
dd2415d350
1 changed files with 5 additions and 2 deletions
|
|
@ -42,13 +42,16 @@ def install(omp=False, mpi=False, phdf5=False):
|
|||
if not mpi:
|
||||
raise ValueError('Parallel HDF5 must be used in '
|
||||
'conjunction with MPI.')
|
||||
cmake_cmd.append('-DHDF5_PREFER_PARALLEL=on')
|
||||
cmake_cmd.append('-DHDF5_PREFER_PARALLEL=ON')
|
||||
else:
|
||||
cmake_cmd.append('-DHDF5_PREFER_PARALLEL=OFF')
|
||||
|
||||
# Build and install
|
||||
cmake_cmd.append('..')
|
||||
print(' '.join(cmake_cmd))
|
||||
subprocess.call(cmake_cmd)
|
||||
subprocess.call(['make', '-j'])
|
||||
subprocess.call(['make', 'install'])
|
||||
subprocess.call(['sudo', 'make', 'install'])
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue