summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2020-06-03 23:25:09 -0400
committerGitHub <noreply@github.com>2020-06-03 22:25:09 -0500
commit104a0c42594687c8753f372ae33985e4cc40e396 (patch)
treefdd7af937ec8a04417a716da3e2a36d6edadddcc /var
parent02548c56fa77ed4ce62a0f8cf95b98966fcaebab (diff)
downloadspack-104a0c42594687c8753f372ae33985e4cc40e396.tar.gz
spack-104a0c42594687c8753f372ae33985e4cc40e396.tar.bz2
spack-104a0c42594687c8753f372ae33985e4cc40e396.tar.xz
spack-104a0c42594687c8753f372ae33985e4cc40e396.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 3626f328c8..5e8a96a16a 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -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 @@ class Trilinos(CMakePackage):
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 @@ class Trilinos(CMakePackage):
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