summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2018-07-14 17:19:26 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-14 18:19:26 -0500
commit5192a3d6d6566c7edde246020ca7ebd48697d957 (patch)
tree53204cb38497d1b25bac2b193fb89c4ff7f0f295
parentda5663a52a02f154e761d955f36a95d6267fc1a4 (diff)
downloadspack-5192a3d6d6566c7edde246020ca7ebd48697d957.tar.gz
spack-5192a3d6d6566c7edde246020ca7ebd48697d957.tar.bz2
spack-5192a3d6d6566c7edde246020ca7ebd48697d957.tar.xz
spack-5192a3d6d6566c7edde246020ca7ebd48697d957.zip
Fixing error in amrvis package. (#8710)
-rw-r--r--var/spack/repos/builtin/packages/amrvis/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/amrvis/package.py b/var/spack/repos/builtin/packages/amrvis/package.py
index b765c58a4b..049b70d03d 100644
--- a/var/spack/repos/builtin/packages/amrvis/package.py
+++ b/var/spack/repos/builtin/packages/amrvis/package.py
@@ -175,10 +175,10 @@ class Amrvis(MakefilePackage):
# Help force Amrvis to not pick up random system compilers
if '+mpi' in self.spec:
spack_env.set('MPI_HOME', self.spec['mpi'].prefix)
- spack_env.set('CC', spec['mpi'].mpicc)
- spack_env.set('CXX', spec['mpi'].mpicxx)
- spack_env.set('F77', spec['mpi'].mpif77)
- spack_env.set('FC', spec['mpi'].mpifc)
+ spack_env.set('CC', self.spec['mpi'].mpicc)
+ spack_env.set('CXX', self.spec['mpi'].mpicxx)
+ spack_env.set('F77', self.spec['mpi'].mpif77)
+ spack_env.set('FC', self.spec['mpi'].mpifc)
def install(self, spec, prefix):
# Install exe manually