Updating BoxLib with the ability to build again. (#2813)

* Updating BoxLib with the ability to build again.

* Using Spack MPI compilers directly.

* Fixing typo.

* Using tarball from github archive for boxlib.
This commit is contained in:
Jon Rood 2017-01-15 18:07:44 -07:00 committed by Todd Gamblin
parent e3a631c90e
commit b2f29b855b

View File

@ -25,26 +25,28 @@
from spack import * from spack import *
class Boxlib(Package): class Boxlib(CMakePackage):
"""BoxLib, a software framework for massively parallel """BoxLib, a software framework for massively parallel
block-structured adaptive mesh refinement (AMR) codes.""" block-structured adaptive mesh refinement (AMR) codes."""
homepage = "https://ccse.lbl.gov/BoxLib/" homepage = "https://ccse.lbl.gov/BoxLib/"
url = "https://ccse.lbl.gov/pub/Downloads/BoxLib.git" url = "https://github.com/BoxLib-Codes/BoxLib/archive/16.12.2.tar.gz"
# TODO: figure out how best to version this. No tags in the repo! version('16.12.2', 'a28d92a5ff3fbbdbbd0a776a59f18526')
version('master', git='https://ccse.lbl.gov/pub/Downloads/BoxLib.git')
depends_on('mpi') depends_on('mpi')
depends_on('cmake', type='build')
def install(self, spec, prefix): def cmake_args(self):
args = std_cmake_args spec = self.spec
args += ['-DCCSE_ENABLE_MPI=1', options = []
'-DCMAKE_C_COMPILER=%s' % which('mpicc'),
'-DCMAKE_CXX_COMPILER=%s' % which('mpicxx'),
'-DCMAKE_Fortran_COMPILER=%s' % which('mpif90')]
cmake('.', *args) options.extend([
make() # '-DBL_SPACEDIM=3',
make("install") '-DENABLE_POSITION_INDEPENDENT_CODE=ON',
'-DENABLE_FBASELIB=ON',
'-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
'-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
'-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc
])
return options