diff options
author | Edward Hartnett <38856240+edwardhartnett@users.noreply.github.com> | 2021-09-27 09:56:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 08:56:05 -0700 |
commit | ffedc3637c397e23c1d02d1aed99c8e75cc174a1 (patch) | |
tree | c3629db4e31b334a3eb9aa7cec6cb94584ea068c /var | |
parent | 4d3becdfd93b69abe343f884f26b064a892d7d7c (diff) | |
download | spack-ffedc3637c397e23c1d02d1aed99c8e75cc174a1.tar.gz spack-ffedc3637c397e23c1d02d1aed99c8e75cc174a1.tar.bz2 spack-ffedc3637c397e23c1d02d1aed99c8e75cc174a1.tar.xz spack-ffedc3637c397e23c1d02d1aed99c8e75cc174a1.zip |
added NOAAs UPP package (#26198)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/upp/package.py | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/upp/package.py b/var/spack/repos/builtin/packages/upp/package.py new file mode 100644 index 0000000000..1962c8ab31 --- /dev/null +++ b/var/spack/repos/builtin/packages/upp/package.py @@ -0,0 +1,52 @@ +# Copyright 2013-2021 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 import * + + +class Upp(CMakePackage): + """ + The Unified Post Processor (UPP) software package is a software + package designed to generate useful products from raw model + output. + """ + + homepage = "https://github.com/NOAA-EMC/UPP" + git = "https://github.com/NOAA-EMC/UPP.git" + + maintainers = ['kgerheiser', 'edwardhartnett', 'Hang-Lei-NOAA'] + + version('10.0.9', tag='upp_v10.0.9', submodules=True) + + variant('openmp', default=True) + variant('postexec', default=True) + variant('wrf-io', default=False) + variant('docs', default=False) + + depends_on('mpi') + depends_on('netcdf-fortran') + depends_on('bacio') + depends_on('crtm') + depends_on('g2') + depends_on('g2tmpl') + depends_on('ip') + + depends_on('nemsio', when='+postexec') + depends_on('sfcio', when='+postexec') + depends_on('sigio', when='+postexec') + depends_on('sp', when='+postexec') + depends_on('w3nco', when='+postexec') + depends_on('wrf-io', when='+wrf-io') + depends_on('doxygen', when='+docs') + + def cmake_args(self): + args = [ + self.define_from_variant('OPENMP', 'openmp'), + self.define_from_variant('BUILD_POSTEXEC', 'postexec'), + self.define_from_variant('BUILD_WITH_WRFIO', 'wrf-io'), + self.define_from_variant('ENABLE_DOCS', 'docs') + ] + + return args |