From ab6c543948741848fe7f52051c1d7d7a9b0e1bce Mon Sep 17 00:00:00 2001 From: William Downs Date: Sat, 20 Mar 2021 04:41:29 -0400 Subject: gchp: add v13.0.0 (#22387) --- var/spack/repos/builtin/packages/gchp/package.py | 12 ++++++++---- 1 file 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), -- cgit v1.2.3-60-g2f50