gchp: add v13.0.0 (#22387)

This commit is contained in:
William Downs 2021-03-20 04:41:29 -04:00 committed by GitHub
parent b8815e577b
commit ab6c543948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),