diff options
author | Stephen Sachs <stephenmsachs@gmail.com> | 2023-02-06 15:12:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 15:12:32 +0100 |
commit | 29d710fdeca3b7a7c2167fbb91401fc8bad880fb (patch) | |
tree | bbd21383a049bf704b6b909dbe96eb82c645a028 | |
parent | 13c4f92907630b1cfe899e389ca368d8fb581c62 (diff) | |
download | spack-29d710fdeca3b7a7c2167fbb91401fc8bad880fb.tar.gz spack-29d710fdeca3b7a7c2167fbb91401fc8bad880fb.tar.bz2 spack-29d710fdeca3b7a7c2167fbb91401fc8bad880fb.tar.xz spack-29d710fdeca3b7a7c2167fbb91401fc8bad880fb.zip |
wrf: add optional netcdf_classic variant (#35261)
Co-authored-by: Stephen Sachs <stesachs@amazon.com>
-rw-r--r-- | var/spack/repos/builtin/packages/wrf/package.py | 3 |
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) |