From 2b1ad6a9cd6509f29d03bb31f428279e3e4d861e Mon Sep 17 00:00:00 2001 From: juckerj <39263956+jonasjucker@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:42:49 +0200 Subject: [PATCH] [icon-ham] Removed references to +ham (#815) --- repos/c2sm/packages/icon-ham/package.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/repos/c2sm/packages/icon-ham/package.py b/repos/c2sm/packages/icon-ham/package.py index 104fd22cb9..6800a39bf3 100644 --- a/repos/c2sm/packages/icon-ham/package.py +++ b/repos/c2sm/packages/icon-ham/package.py @@ -1,20 +1,18 @@ from spack import * -from spack.pkg.c2sm.icon import Icon +from spack.pkg.c2sm.icon import Icon as C2SMIcon -class IconHam(Icon): +class IconHam(C2SMIcon): - @run_before('configure') + @run_before('build') def generate_hammoz_nml(self): - if '+ham' in self.spec: - with working_dir('./externals/atm_phy_echam_submodels/namelists'): - make() + with working_dir('./externals/atm_phy_echam_submodels/namelists'): + make() def configure_args(self): - args = Icon.configure_args(self) + args = super().configure_args() - if '+ham' in self.spec: - args.append('--enable-atm-phy-echam-submodels') - args.append('--enable-hammoz') + args.append('--enable-atm-phy-echam-submodels') + args.append('--enable-hammoz') return args