Skip to content

Commit

Permalink
[icon-ham] Removed references to +ham (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasjucker authored Aug 29, 2023
1 parent 21d37fb commit 2b1ad6a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions repos/c2sm/packages/icon-ham/package.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2b1ad6a

Please sign in to comment.