Add 64 bit variant to dealii. (#2654)
This commit is contained in:
parent
b240fdb2b9
commit
e16908b16b
@ -66,6 +66,8 @@ class Dealii(CMakePackage):
|
|||||||
description='Compile with Trilinos (only with MPI)')
|
description='Compile with Trilinos (only with MPI)')
|
||||||
variant('python', default=True,
|
variant('python', default=True,
|
||||||
description='Compile with Python bindings')
|
description='Compile with Python bindings')
|
||||||
|
variant('64bit', default=False,
|
||||||
|
description='Compile with 64 bit indices support')
|
||||||
|
|
||||||
# required dependencies, light version
|
# required dependencies, light version
|
||||||
depends_on("blas")
|
depends_on("blas")
|
||||||
@ -107,11 +109,11 @@ class Dealii(CMakePackage):
|
|||||||
depends_on("netcdf-cxx", when='+netcdf+mpi')
|
depends_on("netcdf-cxx", when='+netcdf+mpi')
|
||||||
depends_on("oce", when='+oce')
|
depends_on("oce", when='+oce')
|
||||||
depends_on("p4est", when='+p4est+mpi')
|
depends_on("p4est", when='+p4est+mpi')
|
||||||
depends_on("petsc+mpi", when='@8.4.2:+petsc+mpi')
|
depends_on("petsc+mpi", when='@8.4.2:+petsc+mpi~64bit')
|
||||||
depends_on('python', when='@8.5.0:+python')
|
depends_on('python', when='@8.5.0:+python')
|
||||||
depends_on("slepc", when='@8.4.2:+slepc+petsc+mpi')
|
depends_on("slepc", when='@8.4.2:+slepc+petsc+mpi~64bit')
|
||||||
depends_on("petsc@:3.6.4+mpi", when='@:8.4.1+petsc+mpi')
|
depends_on("petsc@:3.6.4+mpi", when='@:8.4.1+petsc+mpi~64bit')
|
||||||
depends_on("slepc@:3.6.3", when='@:8.4.1+slepc+petsc+mpi')
|
depends_on("slepc@:3.6.3", when='@:8.4.1+slepc+petsc+mpi~64bit')
|
||||||
depends_on("trilinos", when='+trilinos+mpi')
|
depends_on("trilinos", when='+trilinos+mpi')
|
||||||
|
|
||||||
def build_type(self):
|
def build_type(self):
|
||||||
@ -170,7 +172,7 @@ def cmake_args(self):
|
|||||||
'-DDEAL_II_WITH_MPI:BOOL=OFF',
|
'-DDEAL_II_WITH_MPI:BOOL=OFF',
|
||||||
])
|
])
|
||||||
|
|
||||||
# Optional dependencies for which librariy names are the same as CMake
|
# Optional dependencies for which library names are the same as CMake
|
||||||
# variables:
|
# variables:
|
||||||
for library in (
|
for library in (
|
||||||
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis'):
|
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis'):
|
||||||
@ -241,6 +243,11 @@ def cmake_args(self):
|
|||||||
'-DDEAL_II_WITH_OPENCASCADE=OFF'
|
'-DDEAL_II_WITH_OPENCASCADE=OFF'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# 64 bit indices
|
||||||
|
options.extend([
|
||||||
|
'-DDEAL_II_WITH_64BIT_INDICES=%s' % ('+64bit' in spec)
|
||||||
|
])
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
def setup_environment(self, spack_env, env):
|
def setup_environment(self, spack_env, env):
|
||||||
|
Loading…
Reference in New Issue
Block a user