summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/wrf/package.py3
1 files changed, 3 insertions, 0 deletions
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)