summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2020-12-17 17:02:49 +0100
committerGitHub <noreply@github.com>2020-12-17 17:02:49 +0100
commitc79647d66b501606e0bd4cf5b62a7eb7eb46b51c (patch)
tree0f9ba27b7dddce9a7a3b2b8723b73b58be3ad171
parent8f8c9b34a9b106ef9cef69f5d058367a75ff1541 (diff)
downloadspack-c79647d66b501606e0bd4cf5b62a7eb7eb46b51c.tar.gz
spack-c79647d66b501606e0bd4cf5b62a7eb7eb46b51c.tar.bz2
spack-c79647d66b501606e0bd4cf5b62a7eb7eb46b51c.tar.xz
spack-c79647d66b501606e0bd4cf5b62a7eb7eb46b51c.zip
flexi: new package (#20313)
-rw-r--r--var/spack/repos/builtin/packages/flexi/package.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flexi/package.py b/var/spack/repos/builtin/packages/flexi/package.py
new file mode 100644
index 0000000000..5b9f65cf16
--- /dev/null
+++ b/var/spack/repos/builtin/packages/flexi/package.py
@@ -0,0 +1,41 @@
+# 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 Flexi(CMakePackage):
+ """Open Source High-Order Unstructured Discontinuous Galerkin Fluid
+ Dynamics Solver"""
+
+ homepage = "https://www.flexi-project.org/"
+ git = "https://github.com/flexi-framework/flexi.git"
+
+ version('master')
+
+ variant('mpi', default=True, description='Enable MPI')
+
+ depends_on('mpi', when='+mpi')
+ depends_on('hdf5+fortran+mpi', when='+mpi')
+ depends_on('hdf5+fortran~mpi', when='~mpi')
+ depends_on('lapack')
+ depends_on('zlib')
+
+ def flag_handler(self, name, flags):
+ if name == 'fflags':
+ if self.spec.satisfies('%gcc@10:'):
+ if flags is None:
+ flags = []
+ flags.append('-fallow-argument-mismatch')
+
+ return (flags, None, None)
+
+ def cmake_args(self):
+ args = [
+ '-DFLEXI_BUILD_HDF5:BOOL=OFF',
+ self.define_from_variant('FLEXI_MPI', 'mpi')
+ ]
+
+ return args