From b6ad37557f337a3d78cd4f63b0a420c7f8b712af Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sat, 6 Jun 2015 17:41:15 -0700 Subject: fix up Saravan's petsc install --- var/spack/packages/petsc/package.py | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'var') diff --git a/var/spack/packages/petsc/package.py b/var/spack/packages/petsc/package.py index ffc522b1da..4864e39bf1 100644 --- a/var/spack/packages/petsc/package.py +++ b/var/spack/packages/petsc/package.py @@ -1,7 +1,9 @@ from spack import * class Petsc(Package): - """PETSc is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations.""" + """PETSc is a suite of data structures and routines for the + scalable (parallel) solution of scientific applications modeled by + partial differential equations.""" homepage = "http://www.mcs.anl.gov/petsc/index.html" url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.5.3.tar.gz" @@ -10,26 +12,29 @@ class Petsc(Package): version('3.5.2', 'ad170802b3b058b5deb9cd1f968e7e13') version('3.5.1', 'a557e029711ebf425544e117ffa44d8f') + depends_on("boost") depends_on("blas") depends_on("lapack") depends_on("hypre") depends_on("parmetis") depends_on("metis") depends_on("hdf5") + depends_on("mpi") def install(self, spec, prefix): configure("--prefix=%s" % prefix, - "--with-blas-lib=%s/lib/libblas.a" % spec['blas'].prefix, - "--with-lapack-lib=%s/lib/liblapack.a" % spec['lapack'].prefix, - "--with-hypre-lib=%s/lib/libhypre.a" % spec['hypre'].prefix, - "--with-hypre-include=%s/include" % spec['hypre'].prefix, - "--with-parmetis-lib=%s/lib/libparmetis.a" % spec['parmetis'].prefix, - "--with-parmetis-include=%s/include" % spec['parmetis'].prefix, - "--with-metis-lib=%s/lib/libmetis.a" % spec['metis'].prefix, - "--with-metis-include=%s/include" % spec['metis'].prefix, - "--with-hdf5-lib=%s/lib/libhdf5.a" % spec['hdf5'].prefix, - "--with-hdf5-include=%s/include" % spec['hdf5'].prefix, + "CC=cc", + "CXX=c++", + "FC=f90", + "--with-blas-lib=%s/libblas.a" % spec['blas'].prefix.lib, + "--with-lapack-lib=%s/liblapack.a" % spec['lapack'].prefix.lib, + "--with-boost-dir=%s" % spec['boost'].prefix, + "--with-hypre-dir=%s" % spec['hypre'].prefix, + "--with-parmetis-dir=%s" % spec['parmetis'].prefix, + "--with-metis-dir=%s" % spec['metis'].prefix, + "--with-hdf5-dir=%s" % spec['hdf5'].prefix, "--with-shared-libraries=0") - make() + # PETSc has its own way of doing parallel make. + make('MAKE_NP=%s' % make_jobs, parallel=False) make("install") -- cgit v1.2.3-60-g2f50