diff options
-rw-r--r-- | var/spack/repos/builtin/packages/wrf-io/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/wrf-io/package.py b/var/spack/repos/builtin/packages/wrf-io/package.py index f67507587d..c7360cc284 100644 --- a/var/spack/repos/builtin/packages/wrf-io/package.py +++ b/var/spack/repos/builtin/packages/wrf-io/package.py @@ -9,14 +9,22 @@ from spack import * class WrfIo(CMakePackage): """The WRFIO package is a lightweight WRF-IO API library for Unified Post Processor (UPP). It reads wrf forecasts (WRF state plus - diagnostics).""" + diagnostics). + + This is part of the NCEPLIBS project.""" homepage = "https://noaa-emc.github.io/NCEPLIBS-wrf_io" url = "https://github.com/NOAA-EMC/NCEPLIBS-wrf_io/archive/refs/tags/v1.2.0.tar.gz" - maintainers = ['t-brown'] + maintainers = ['t-brown', 'kgerheiser', 'Hang-Lei-NOAA', 'edwardhartnett'] version('1.2.0', sha256='000cf5294a2c68460085258186e1f36c86d3d0d9c433aa969a0f92736b745617') + variant('openmp', default=False, description='Enable multithreading with OpenMP') + depends_on('netcdf-c') depends_on('netcdf-fortran') + + def cmake_args(self): + args = [self.define_from_variant('OPENMP', 'openmp')] + return args |