summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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