summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGe Wenjun <39968398+wjge@users.noreply.github.com>2020-06-25 15:57:31 -0400
committerGitHub <noreply@github.com>2020-06-25 14:57:31 -0500
commit740a9d88f9e873af2ba05c3ae1029c82e47b0d22 (patch)
treee350062007fbeb5878de2630760288364d4af7a0 /var
parentd2b56dbce3f6a847a015bb002e7748fe214a154a (diff)
downloadspack-740a9d88f9e873af2ba05c3ae1029c82e47b0d22.tar.gz
spack-740a9d88f9e873af2ba05c3ae1029c82e47b0d22.tar.bz2
spack-740a9d88f9e873af2ba05c3ae1029c82e47b0d22.tar.xz
spack-740a9d88f9e873af2ba05c3ae1029c82e47b0d22.zip
add new package: datatransferkit (#17158)
* add new package: datatransferkit * fix style * remove the build type;add~dtk;'shared' variant;homepage * add maintainer
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/datatransferkit/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/datatransferkit/package.py b/var/spack/repos/builtin/packages/datatransferkit/package.py
new file mode 100644
index 0000000000..959d5b5093
--- /dev/null
+++ b/var/spack/repos/builtin/packages/datatransferkit/package.py
@@ -0,0 +1,46 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Datatransferkit(CMakePackage):
+ """DataTransferKit is an open-source software library of
+ parallel solution transfer services for multiphysics simulations"""
+
+ homepage = "https://datatransferkit.readthedoc.io"
+ url = "https://github.com/ORNL-CEES/DataTransferKit/archive/3.1-rc1.tar.gz"
+ git = "https://github.com/ORNL-CEES/DataTransferKit.git"
+
+ maintainers = ['Rombur']
+
+ version('master', branch='master', submodules=True)
+
+ variant('openmp', default=False, description='enable OpenMP backend')
+ variant('serial', default=True, description='enable Serial backend (default)')
+ variant('shared', default=True,
+ description='enable the build of shared lib')
+
+ depends_on('cmake', type='build')
+ depends_on('trilinos@develop+intrepid2+shards~dtk', when='+serial')
+ depends_on('trilinos@develop+intrepid2+shards+openmp~dtk', when='+openmp')
+
+ def cmake_args(self):
+ spec = self.spec
+
+ options = [
+ '-DBUILD_SHARED_LIBS:BOOL=%s' % (
+ 'ON' if '+shared' in spec else 'OFF'),
+ '-DDataTransferKit_ENABLE_DataTransferKit=ON',
+ '-DDataTransferKit_ENABLE_TESTS=OFF',
+ '-DDataTransferKit_ENABLE_EXAMPLES=OFF',
+ '-DCMAKE_CXX_EXTENSIONS=OFF',
+ '-DCMAKE_CXX_STANDARD=14',
+ ]
+
+ if '+openmp' in spec:
+ options.append('-DDataTransferKit_ENABLE_OpenMP=ON')
+
+ return options