1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 2013-2022 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.package import *
class Pflotran(AutotoolsPackage):
"""PFLOTRAN is an open source, state-of-the-art massively parallel
subsurface flow and reactive transport code.
"""
homepage = "https://www.pflotran.org"
git = "https://bitbucket.org/pflotran/pflotran.git"
maintainers = ["ghammond86", "balay"]
version("develop")
version("4.0.1", commit="fd351a49b687e27f46eae92e9259156eea74897d") # tag v4.0.1
version("3.0.2", commit="9e07f416a66b0ad304c720b61aa41cba9a0929d5") # tag v3.0.2
version("xsdk-0.6.0", commit="46e14355c1827c057f2e1b3e3ae934119ab023b2")
version("xsdk-0.5.0", commit="98a959c591b72f73373febf5f9735d2c523b4c20")
version("xsdk-0.4.0", commit="c851cbc94fc56a32cfdb0678f3c24b9936a5584e")
version("xsdk-0.3.0", branch="release/xsdk-0.3.0")
depends_on("mpi")
depends_on("hdf5@1.8.12:+mpi+fortran+hl")
depends_on("petsc@main:+hdf5+metis", when="@develop")
depends_on("petsc@3.18:+hdf5+metis", when="@4.0.1")
depends_on("petsc@3.16:+hdf5+metis", when="@3.0.2")
depends_on("petsc@3.14:+hdf5+metis", when="@xsdk-0.6.0")
depends_on("petsc@3.12:+hdf5+metis", when="@xsdk-0.5.0")
depends_on("petsc@3.10:+hdf5+metis", when="@xsdk-0.4.0")
depends_on("petsc@3.8.0:+hdf5+metis", when="@xsdk-0.3.0")
@property
def parallel(self):
return self.spec.satisfies("@xsdk-0.4.0:")
def flag_handler(self, name, flags):
if "%gcc@10:" in self.spec and name == "fflags":
flags.append("-fallow-argument-mismatch")
return flags, None, None
|