diff options
-rw-r--r-- | var/spack/repos/builtin/packages/trilinos/package.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index 0d90ae4e1e..66dc4f0e64 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -87,14 +87,23 @@ class Trilinos(CMakePackage): description='Enables the build of shared libraries') variant('debug', default=False, description='Builds a debug version of the libraries') - variant('boost', default=True, description='Compile with Boost') - variant('tpetra', default=True, description='Compile with Tpetra') - variant('exodus', default=False, description='Compile with Exodus from SEACAS') + variant('boost', default=True, description='Compile with Boost') + variant('tpetra', default=True, description='Compile with Tpetra') + variant('exodus', default=False, description='Compile with Exodus from SEACAS') + + variant('dtk', default=False, description='Enable DataTransferKit') + resource(name='dtk', + git='https://github.com/ornl-cees/DataTransferKit', + tag='master', + placement='DataTransferKit', + when='+dtk') + conflicts('+dtk', when='~tpetra') # Everything should be compiled with -fpic depends_on('blas') depends_on('lapack') depends_on('boost', when='+boost') + depends_on('boost', when='+dtk') depends_on('matio') depends_on('glm') depends_on('metis@5:', when='+metis') @@ -386,6 +395,13 @@ class Trilinos(CMakePackage): '-DTrilinos_ENABLE_STK=OFF' ]) + if '+dtk' in spec: + options.extend([ + '-DTrilinos_EXTRA_REPOSITORIES:STRING=DataTransferKit', + '-DTpetra_INST_INT_UNSIGNED_LONG:BOOL=ON', + '-DTrilinos_ENABLE_DataTransferKit:BOOL=ON' + ]) + # exodus if '+exodus' in spec: options.extend([ |