Working boxlib package.

This commit is contained in:
Todd Gamblin 2015-06-06 16:16:11 -07:00
parent eb9859ce75
commit f29fc5822b

View File

@ -1,15 +1,25 @@
from spack import * from spack import *
class Boxlib(Package): class Boxlib(Package):
"""BoxLib, a software framework for massively parallel block-structured adaptive mesh refinement (AMR) codes.""" """BoxLib, a software framework for massively parallel
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://ccse.lbl.gov/pub/Downloads/BoxLib.git";
version('master', 'https://ccse.lbl.gov/pub/Downloads/BoxLib.git') # TODO: figure out how best to version this. No tags in the repo!
version('master', git='https://ccse.lbl.gov/pub/Downloads/BoxLib.git')
depends_on('mpi')
def install(self, spec, prefix): def install(self, spec, prefix):
#configure("--prefix=%s" % prefix) args = std_cmake_args
#make() args += ['-DCCSE_ENABLE_MPI=1',
#make("install") '-DCMAKE_C_COMPILER=%s' % which('mpicc'),
cd(pwd()) '-DCMAKE_CXX_COMPILER=%s' % which('mpicxx'),
'-DCMAKE_Fortran_COMPILER=%s' % which('mpif90')]
cmake('.', *args)
make()
make("install")