2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-12-11 08:22:36 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-12-11 08:22:36 +08:00
|
|
|
|
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Pflotran(AutotoolsPackage):
|
|
|
|
"""PFLOTRAN is an open source, state-of-the-art massively parallel
|
|
|
|
subsurface flow and reactive transport code.
|
|
|
|
"""
|
|
|
|
|
|
|
|
homepage = "http://www.pflotran.org"
|
2018-07-24 09:55:17 +08:00
|
|
|
git = "https://bitbucket.org/pflotran/pflotran.git"
|
2016-12-11 08:22:36 +08:00
|
|
|
|
2019-04-18 21:20:22 +08:00
|
|
|
maintainers = ['ghammond86', 'balay']
|
|
|
|
|
2018-07-24 09:55:17 +08:00
|
|
|
version('develop')
|
2018-12-24 09:35:03 +08:00
|
|
|
version('xsdk-0.4.0', commit='c851cbc94fc56a32cfdb0678f3c24b9936a5584e')
|
2018-07-24 09:55:17 +08:00
|
|
|
version('xsdk-0.3.0', branch='release/xsdk-0.3.0')
|
2018-12-24 09:35:03 +08:00
|
|
|
version('xsdk-0.2.0', commit='4da763c6136df57caff43f98c926433958cfdea6')
|
2016-12-11 08:22:36 +08:00
|
|
|
|
|
|
|
depends_on('mpi')
|
2017-01-21 02:18:58 +08:00
|
|
|
depends_on('hdf5@1.8.12:+mpi+fortran')
|
2018-12-24 09:35:03 +08:00
|
|
|
depends_on('petsc@develop:+hdf5+metis', when='@develop')
|
|
|
|
depends_on('petsc@3.10:+hdf5+metis', when='@xsdk-0.4.0')
|
2018-07-24 09:55:17 +08:00
|
|
|
depends_on('petsc@xsdk-0.2.0+hdf5+metis', when='@xsdk-0.2.0')
|
2017-11-28 14:08:08 +08:00
|
|
|
depends_on('petsc@3.8.0:+hdf5+metis', when='@xsdk-0.3.0')
|
2016-12-11 08:22:36 +08:00
|
|
|
|
2018-10-17 22:57:20 +08:00
|
|
|
@property
|
|
|
|
def parallel(self):
|
2018-12-24 09:35:03 +08:00
|
|
|
return (self.spec.satisfies('@develop') or
|
|
|
|
self.spec.satisfies('@xsdk-0.4.0'))
|