Install parallel h5py with no build isolation (#3782)

This commit is contained in:
Paul Romano 2026-02-08 16:22:39 -06:00 committed by GitHub
parent 6efc9db7b3
commit d0346e94ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,7 @@
#include "openmc/material.h"
#include "openmc/mesh.h"
#include "openmc/message_passing.h"
#include "openmc/mgxs_interface.h"
#include "openmc/nuclide.h"
#include "openmc/photon.h"
#include "openmc/plot.h"
@ -163,6 +164,7 @@ int openmc_finalize()
data::energy_min = {0.0, 0.0, 0.0, 0.0};
data::temperature_min = 0.0;
data::temperature_max = INFTY;
data::mg = {};
model::root_universe = -1;
model::plotter_seed = 1;
openmc::openmc_set_seed(DEFAULT_SEED);

View file

@ -39,7 +39,9 @@ if [[ $MPI == 'y' ]]; then
export CC=mpicc
export HDF5_MPI=ON
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich
pip install --no-binary=h5py h5py
# Install h5py without build isolation to pick up already installed mpi4py
pip install Cython pkgconfig
pip install --no-build-isolation --no-binary=h5py h5py
fi
# Build and install OpenMC executable