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:
Seth R. Johnson 2020-06-03 23:25:09 -04:00 committed by GitHub
parent 02548c56fa
commit 104a0c4259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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