Skip to content

Commit

Permalink
Merge pull request #57 from ACCESS-NRI/update_om3
Browse files Browse the repository at this point in the history
Update OM3 package to take into account recent changes
  • Loading branch information
micaeljtoliveira authored Nov 30, 2023
2 parents 7a499b7 + 226e1a6 commit e57dc31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/access-om3/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class AccessOm3(CMakePackage):
multi=True,
description="ACCESS-OM3 configurations to build",
)
variant(
"install_libraries",
default=False,
description="Install component libraries"
)
variant("openmp", default=False, description="Enable OpenMP")
variant("mom_symmetric", default=False, description="Use symmetric memory in MOM6")
variant(
Expand All @@ -53,12 +58,14 @@ class AccessOm3(CMakePackage):
depends_on("[email protected]:")
depends_on("[email protected]:")
depends_on("[email protected]:")
depends_on("[email protected]:")

flag_handler = CMakePackage.build_system_flags

def cmake_args(self):
args = [
self.define_from_variant("OM3_MOM_SYMMETRIC", "mom_symmetric"),
self.define_from_variant("OM3_LIB_INSTALL", "install_libraries"),
self.define_from_variant("OM3_OPENMP", "openmp"),
self.define(
"OM3_ENABLE_MOM6", "configurations=MOM6" in self.spec
Expand Down

0 comments on commit e57dc31

Please sign in to comment.