summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index 9af8cb79ac..bfbcd7fa3a 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -74,5 +74,11 @@ class Warpx(MakefilePackage):
'TINY_PROFILE = {0}'.format(torf('+tprof')))
makefile.filter('EBASE .*', 'EBASE = warpx')
+ def setup_environment(self, spack_env, run_env):
+ # --- Fool the compiler into using the "unknown" configuration.
+ # --- With this, it will use the spack provided mpi.
+ spack_env.set('HOSTNAME', 'unknown')
+ spack_env.set('NERSC_HOST', 'unknown')
+
def install(self, spec, prefix):
make('WarpxBinDir = {0}'.format(prefix.bin), 'all')