Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added +restart_repro variant #67

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/mom5/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
version("master", branch="master")

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".
depends_on("mpi")
Expand Down Expand Up @@ -51,7 +52,7 @@

# NOTE: The order of the libraries matter during the linking step!
# NOTE: datetime-fortran is a dependency of libaccessom2.
ldeps = ["oasis3-mct", "libaccessom2", "netcdf-c", "netcdf-fortran", "datetime-fortran"]

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

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:55:89: E501 Line too long (96 > 88 characters)
libs = " ".join([(spec[d].libs).ld_flags for d in ldeps])

# TODO: https://github.com/ACCESS-NRI/ACCESS-OM/issues/12
Expand All @@ -78,7 +79,7 @@

FPPFLAGS :=

FFLAGS := -fcray-pointer -fdefault-real-8 -ffree-line-length-none -fno-range-check -Waliasing -Wampersand -Warray-bounds -Wcharacter-truncation -Wconversion -Wline-truncation -Wintrinsics-std -Wsurprising -Wno-tabs -Wunderflow -Wunused-parameter -Wintrinsic-shadow -Wno-align-commons -fallow-argument-mismatch -fallow-invalid-boz

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

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:82:89: E501 Line too long (329 > 88 characters)
FFLAGS += {incs}
FFLAGS += -DGFORTRAN

Expand Down Expand Up @@ -162,10 +163,10 @@
INCLUDE := {incs}

FPPFLAGS := -fpp -Wp,-w $(INCLUDE)
FFLAGS := -fno-alias -safe-cray-ptr -fpe0 -ftz -assume byterecl -i4 -r8 -nowarn -check noarg_temp_created -assume nobuffered_io -convert big_endian -grecord-gcc-switches -align all

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

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:166:89: E501 Line too long (180 > 88 characters)
FFLAGS_OPT := {FFLAGS_OPT}
FFLAGS_REPORT := -qopt-report=5 -qopt-report-annotate
FFLAGS_DEBUG := -g3 -O0 -debug all -check -check noarg_temp_created -check nopointer -warn -warn noerrors -ftrapuv -traceback

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

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/mom5/package.py:169:89: E501 Line too long (125 > 88 characters)
FFLAGS_REPRO := -fp-model precise -fp-model source -align all
FFLAGS_VERBOSE := -v -V -what

Expand Down Expand Up @@ -311,6 +312,8 @@

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
Loading