diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-06 17:41:15 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-06 17:41:15 -0700 |
commit | b6ad37557f337a3d78cd4f63b0a420c7f8b712af (patch) | |
tree | 141662d93ebb202aaf5529f0d70208886d38b40e | |
parent | d266bf0184ca0d3a466d2370be0e61c13ff30dcd (diff) | |
download | spack-b6ad37557f337a3d78cd4f63b0a420c7f8b712af.tar.gz spack-b6ad37557f337a3d78cd4f63b0a420c7f8b712af.tar.bz2 spack-b6ad37557f337a3d78cd4f63b0a420c7f8b712af.tar.xz spack-b6ad37557f337a3d78cd4f63b0a420c7f8b712af.zip |
fix up Saravan's petsc install
-rw-r--r-- | var/spack/packages/petsc/package.py | 29 |
1 files changed, 17 insertions, 12 deletions
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") |