add teuchos to Trilinos, update dealii to explicitly require certain packages (#4460)
This commit is contained in:
parent
85fd8f0b31
commit
5c5fd4a7e3
@ -126,22 +126,21 @@ class Dealii(CMakePackage):
|
||||
depends_on("slepc", when='+slepc+petsc+mpi')
|
||||
depends_on("slepc@:3.6.3", when='@:8.4.1+slepc+petsc+mpi')
|
||||
depends_on("slepc~arpack", when='+slepc+petsc+mpi+int64')
|
||||
depends_on("trilinos", when='+trilinos+mpi~int64')
|
||||
depends_on("trilinos~hypre", when="+trilinos+mpi+int64")
|
||||
depends_on("trilinos+amesos+aztec+epetra+ifpack+ml+muelu+sacado+teuchos", when='+trilinos+mpi~int64')
|
||||
depends_on("trilinos+amesos+aztec+epetra+ifpack+ml+muelu+sacado+teuchos~hypre", when="+trilinos+mpi+int64")
|
||||
|
||||
# check that the combination of variants makes sense
|
||||
def variants_check(self):
|
||||
for p in ['+arpack', '+hdf5', '+netcdf', '+p4est', '+petsc',
|
||||
'+slepc', '+trilinos']:
|
||||
if p in self.spec and '+mpi' not in self.spec:
|
||||
raise RuntimeError('The ' + p + ' variant requires +mpi')
|
||||
conflicts('+gsl', when='@:8.4.2')
|
||||
conflicts('+python', when='@:8.4.2')
|
||||
for p in ['+arpack', '+hdf5', '+netcdf', '+p4est', '+petsc',
|
||||
'+slepc', '+trilinos']:
|
||||
conflicts(p, when='~mpi')
|
||||
|
||||
def build_type(self):
|
||||
# CMAKE_BUILD_TYPE should be DebugRelease | Debug | Release
|
||||
return 'DebugRelease'
|
||||
|
||||
def cmake_args(self):
|
||||
self.variants_check()
|
||||
spec = self.spec
|
||||
options = []
|
||||
# release flags
|
||||
|
@ -111,6 +111,8 @@ class Trilinos(CMakePackage):
|
||||
description='Compile with zlib')
|
||||
variant('stk', default=False,
|
||||
description='Compile with STK')
|
||||
variant('teuchos', default=True,
|
||||
description='Compile with Teuchos')
|
||||
variant('belos', default=True,
|
||||
description='Compile with Belos')
|
||||
variant('zoltan', default=True,
|
||||
@ -287,6 +289,8 @@ def cmake_args(self):
|
||||
'ON' if '+ifpack2' in spec else 'OFF'),
|
||||
'-DTrilinos_ENABLE_Gtest:BOOL=%s' % (
|
||||
'ON' if '+gtest' in spec else 'OFF'),
|
||||
'-DTrilinos_ENABLE_Teuchos:BOOL=%s' % (
|
||||
'ON' if '+teuchos' in spec else 'OFF'),
|
||||
])
|
||||
|
||||
if '+xsdkflags' in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user