summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index 933093f60c..f4b8c66c35 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -189,13 +189,18 @@ class Warpx(CMakePackage):
self.define_from_variant("WarpX_QED_TABLE_GEN", "qedtablegen"),
]
- with when("+openpmd"):
+ # FindMPI needs an extra hint sometimes, particularly on cray systems
+ if "+mpi" in spec:
+ args.append(self.define("MPI_C_COMPILER", spec["mpi"].mpicc))
+ args.append(self.define("MPI_CXX_COMPILER", spec["mpi"].mpicxx))
+
+ if "+openpmd" in spec:
args.append("-DWarpX_openpmd_internal=OFF")
# Work-around for SENSEI 4.0: wrong install location for CMake config
# https://github.com/SENSEI-insitu/SENSEI/issues/79
if "+sensei" in spec:
- args.append(self.define("SENSEI_DIR", join_path(spec["sensei"].prefix.lib, "cmake")))
+ args.append(self.define("SENSEI_DIR", spec["sensei"].prefix.lib.cmake))
return args