Skip to content

Commit

Permalink
Add MOM5 restart_repro variant (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanheerdegen authored Mar 20, 2024
1 parent abeeaad commit 203abec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mom5/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Mom5(MakefilePackage):

variant("deterministic", default=False, description="Deterministic build.")
variant("type", default="ACCESS-OM", description="Build MOM5 to support a particular use case.", values=("ACCESS-CM", "ACCESS-ESM", "ACCESS-OM", "ACCESS-OM-BGC", "MOM_solo"), multi=False)

Check failure on line 22 in packages/mom5/package.py

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:22:89: E501 Line too long (191 > 88 characters)
variant("restart_repro", default=False, description="Reproducible restart build.")
variant("optimisation_report", default=False, description="Generate optimisation reports.")

Check failure on line 24 in packages/mom5/package.py

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:24:89: E501 Line too long (95 > 88 characters)

# Depend on virtual package "mpi".
Expand Down Expand Up @@ -311,6 +312,8 @@ def build(self, spec, prefix):

if "+optimisation_report" in self.spec:
build.add_default_env("REPORT", "true")
if "+restart_repro" in self.spec:
build.add_default_env("REPRO", "true")

# The MOM5 commit d7ba13a3f364ce130b6ad0ba813f01832cada7a2
# requires the --no_version switch to avoid git hashes being
Expand Down

0 comments on commit 203abec

Please sign in to comment.