Skip to content
Snippets Groups Projects
Commit 1531aa25 authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

change default options for icon-nwp package

parent ba661c17
No related branches found
No related tags found
No related merge requests found
Pipeline #18749 passed
......@@ -42,6 +42,12 @@ class IconNwp(Package):
variant("petsc", default=False, description="add PETSc support")
variant("debug", default=False, description="add debug flags when compiling icon")
variant("parallelnetcdf", default=True, description="enable-parallel-netcdf")
variant("yaxt", default=True, description="enable-yaxt")
variant("coupling", default=True, description="enable-coupling")
variant("ecrad", default=True, description="enable-ecrad")
variant("grib2", default=True, description="enable-grib2")
# Dependencies
depends_on("mpi")
depends_on("netcdf-c")
......@@ -219,7 +225,6 @@ class IconNwp(Package):
f"LDFLAGS={' '.join(libs)}",
f"LIBS={' '.join(libs)}",
f"--prefix={prefix}",
f"--enable-grib2",
]
ICON_FCFLAGS="-std=f2008 -fallow-argument-mismatch -fmodule-private -fimplicit-none -Wall"
......@@ -228,6 +233,20 @@ class IconNwp(Package):
else:
options.append(f"ICON_FCFLAGS={ICON_FCFLAGS} -O3")
if "+parallelnetcdf" in self.spec:
options.append("--enable-parallel-netcdf")
if "+yaxt" in self.spec:
options.append("--enable-yaxt")
if "+coupling" in self.spec:
options.append("--enable-coupling")
if "+ecrad" in self.spec:
options.append("--enable-ecrad")
if "+grib2" in self.spec:
options.append("--enable-grib2")
# For some reason there's a problem with OpenMPI with gcc@11.3.0 which makes the configuration fail.
if self.spec.compiler.name == "gcc" and self.spec.compiler.version == Version("11.3.0"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment