Trilinos: add Stratimikos package (#16925)
Stratimikos is an optional dependency for our project. It depends on Thyra, and thyra has subpackages that should be enabled based on tpetra/epetra/epetraext.
This commit is contained in:
parent
02548c56fa
commit
104a0c4259
1 changed files with 9 additions and 0 deletions
|
@ -179,6 +179,8 @@ class Trilinos(CMakePackage):
|
|||
description='Compile with Shards')
|
||||
variant('shylu', default=False,
|
||||
description='Compile with ShyLU')
|
||||
variant('stratimikos', default=False,
|
||||
description='Compile with Stratimikos')
|
||||
variant('teko', default=False,
|
||||
description='Compile with Teko')
|
||||
variant('tempus', default=False,
|
||||
|
@ -468,6 +470,7 @@ def define_tpl_enable(cmake_var, spec_var=None):
|
|||
define_trilinos_enable('Shards'),
|
||||
define_trilinos_enable('ShyLU'),
|
||||
define_trilinos_enable('STK'),
|
||||
define_trilinos_enable('Stratimikos'),
|
||||
define_trilinos_enable('Teko'),
|
||||
define_trilinos_enable('Tempus'),
|
||||
define_trilinos_enable('Teuchos'),
|
||||
|
@ -513,6 +516,12 @@ def define_tpl_enable(cmake_var, spec_var=None):
|
|||
define('Trilinos_ENABLE_SEACASNemslice', False)
|
||||
])
|
||||
|
||||
if '+stratimikos' in spec:
|
||||
# Add thyra adapters based on package enables
|
||||
options.extend(
|
||||
define_trilinos_enable('Thyra' + pkg + 'Adapters', pkg.lower())
|
||||
for pkg in ['Epetra', 'EpetraExt', 'Tpetra'])
|
||||
|
||||
# ######################### TPLs #############################
|
||||
|
||||
blas = spec['blas'].libs
|
||||
|
|
Loading…
Reference in a new issue