diff options
author | kuramoto-fj <72247780+kuramoto-fj@users.noreply.github.com> | 2020-12-26 00:15:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 09:15:13 -0600 |
commit | b56d1a77adb3551ee8b51436fee62f4dbd4eff20 (patch) | |
tree | bf19d7808feb1878b2d1a0d7728004212c0a8592 /var | |
parent | 1daf6d3df74acf48a0469d0eb9d0e600d4b75a3d (diff) | |
download | spack-b56d1a77adb3551ee8b51436fee62f4dbd4eff20.tar.gz spack-b56d1a77adb3551ee8b51436fee62f4dbd4eff20.tar.bz2 spack-b56d1a77adb3551ee8b51436fee62f4dbd4eff20.tar.xz spack-b56d1a77adb3551ee8b51436fee62f4dbd4eff20.zip |
Lis: Add new package (#20548)
* Lis: Add new package
* delete unnecessary inner quotes
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/lis/package.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lis/package.py b/var/spack/repos/builtin/packages/lis/package.py new file mode 100644 index 0000000000..69e04db1d6 --- /dev/null +++ b/var/spack/repos/builtin/packages/lis/package.py @@ -0,0 +1,37 @@ +# 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 Lis(AutotoolsPackage): + """Lis (Library of Iterative Solvers for linear systems, + pronounced [lis]) is a parallel software library for + solving discretized linear equations and eigenvalue + problems that arise in the numerical solution of partial + differential equations using iterative methods.""" + + homepage = "https://www.ssisc.org/lis/index.en.html" + url = "https://www.ssisc.org/lis/dl/lis-2.0.27.zip" + + version('2.0.27', sha256='85f32f4abbc94d1b40b22c10b915170271b19822b6aa6939b1cb295f6e455237') + + variant('mpi', default=False, description='Build with MPI library') + variant('omp', default=False, description='Build with openMP library') + variant('f90', default=False, description='enable FORTRAN 90 compatible interfaces') + + depends_on('mpi', when='+mpi') + + def configure_args(self): + config_args = [] + config_args.extend(self.enable_or_disable('mpi')) + config_args.extend(self.enable_or_disable('omp')) + config_args.extend(self.enable_or_disable('f90')) + + if self.spec.satisfies('%fj'): + config_args.append('CLIBS=-lm') + config_args.append('FCLDFLAGS=-mlcmain=main') + + return config_args |