summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Downs <wdowns@g.harvard.edu>2021-03-20 04:41:29 -0400
committerGitHub <noreply@github.com>2021-03-20 09:41:29 +0100
commitab6c543948741848fe7f52051c1d7d7a9b0e1bce (patch)
tree2e3ca24733d8c4c65c69917763d6b6017846c11e
parentb8815e577bd96978288fcc4990b5377029dc3195 (diff)
downloadspack-ab6c543948741848fe7f52051c1d7d7a9b0e1bce.tar.gz
spack-ab6c543948741848fe7f52051c1d7d7a9b0e1bce.tar.bz2
spack-ab6c543948741848fe7f52051c1d7d7a9b0e1bce.tar.xz
spack-ab6c543948741848fe7f52051c1d7d7a9b0e1bce.zip
gchp: add v13.0.0 (#22387)
-rw-r--r--var/spack/repos/builtin/packages/gchp/package.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/gchp/package.py b/var/spack/repos/builtin/packages/gchp/package.py
index cd2bd3d44b..86cbc87805 100644
--- a/var/spack/repos/builtin/packages/gchp/package.py
+++ b/var/spack/repos/builtin/packages/gchp/package.py
@@ -11,21 +11,24 @@ class Gchp(CMakePackage):
"""GEOS-Chem High Performance model of atmospheric chemistry"""
homepage = "https://gchp.readthedocs.io/"
- url = "https://github.com/geoschem/GCHP/archive/13.0.0-rc.0.tar.gz"
+ url = "https://github.com/geoschem/GCHP/archive/13.0.0.tar.gz"
maintainers = ['williamdowns']
+ version('13.0.0', git='https://github.com/geoschem/GCHP.git', preferred=True,
+ commit='1f5a5c5630c5d066ff8306cbb8b83e267ca7c265', submodules=True)
version('13.0.0-rc.0', git='https://github.com/geoschem/GCHP.git',
commit='4bd15316faf4e5f06517d3a6b1df1986b1126d90', submodules=True)
patch('for_aarch64.patch', when='target=aarch64:')
- # NOTE: Post-13.0.0-rc.0 versions will have fix that
- # allows these ESMF variants to be enabled
- depends_on('esmf@8.0.1: -lapack -pio -pnetcdf -xerces')
+ depends_on('esmf@8.0.1', when='@13.0.0:')
+ depends_on('esmf@8.0.1: -lapack -pio -pnetcdf -xerces', when='@13.0.0-rc.0')
depends_on('mpi@3')
depends_on('netcdf-fortran')
depends_on('cmake@3.13:')
+ depends_on('libfabric', when='+ofi')
+ depends_on('m4')
variant('omp', default=False, description="OpenMP parallelization")
variant('real8', default=True, description="REAL*8 precision")
@@ -33,6 +36,7 @@ class Gchp(CMakePackage):
variant('rrtmg', default=False, description="RRTMG radiative transfer model")
variant('luo', default=False, description="Luo et al 2019 wet deposition scheme")
variant('tomas', default=False, description="TOMAS Microphysics (Experimental)")
+ variant('ofi', default=False, description="Build with Libfabric support")
def cmake_args(self):
args = [self.define("RUNDIR", self.prefix),