From 29d710fdeca3b7a7c2167fbb91401fc8bad880fb Mon Sep 17 00:00:00 2001 From: Stephen Sachs Date: Mon, 6 Feb 2023 15:12:32 +0100 Subject: wrf: add optional netcdf_classic variant (#35261) Co-authored-by: Stephen Sachs --- var/spack/repos/builtin/packages/wrf/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/wrf/package.py b/var/spack/repos/builtin/packages/wrf/package.py index 10f68da74d..9e2550023d 100644 --- a/var/spack/repos/builtin/packages/wrf/package.py +++ b/var/spack/repos/builtin/packages/wrf/package.py @@ -127,6 +127,7 @@ class Wrf(Package): description="Parallel IO support through Pnetcdf library", ) variant("chem", default=False, description="Enable WRF-Chem", when="@4:") + variant("netcdf_classic", default=False, description="Use NetCDF without HDF5 compression") patch("patches/3.9/netcdf_backport.patch", when="@3.9.1.1") patch("patches/3.9/tirpc_detect.patch", when="@3.9.1.1") @@ -228,6 +229,8 @@ class Wrf(Package): # Add WRF-Chem module if "+chem" in self.spec: env.set("WRF_CHEM", 1) + if "+netcdf_classic" in self.spec: + env.set("NETCDF_classic", 1) # This gets used via the applied patch files env.set("NETCDFF", self.spec["netcdf-fortran"].prefix) env.set("PHDF5", self.spec["hdf5"].prefix) -- cgit v1.2.3-60-g2f50