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

access-esm1p6: add variant cice, generic-tracers and um #177

Merged
merged 1 commit into from
Dec 8, 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
46 changes: 40 additions & 6 deletions packages/access-esm1p6/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from spack.package import *

class AccessEsm1p6(BundlePackage):
"""ACCESS-ESM1.6 bundle contains the coupled UM7, CICE4 and MOM5 models.
"""ACCESS-ESM1.6 bundle contains the coupled UM7, CICE4/CICE5 and MOM5
models.

ACCESS-ESM1.6 comprises of:

Expand All @@ -17,21 +18,54 @@ class AccessEsm1p6(BundlePackage):
* The CABLE land surface model with biogeochemistry (CASA-CNP) (CABLE2.4)
* The GFDL MOM5 ocean model at 1 degree resolution
* The WOMBATlite ocean BGC model (generic tracer version)
* The LANL CICE4.1 sea ice model (version as ACCESS1.4)
* The LANL CICE4.1 sea ice model (version as ACCESS1.4). CICE5 for testing.
* The OASIS-MCT coupler
"""

homepage = "https://www.access-nri.org.au"

git = "https://github.com/ACCESS-NRI/ACCESS-ESM1.6.git"

maintainers("dougiesquire")
maintainers("dougiesquire", "harshula")

version("latest")

depends_on("[email protected]", type="run")
depends_on("[email protected] type=ACCESS-ESM", type="run")
variant(
"cice",
default="4",
description="Choose the version of the CICE sea-ice model.",
values=("4", "5"),
multi=False,
)
variant(
"generic-tracers",
default=True,
description="Enable generic tracers.",
)
variant(
"um",
default="access-esm1.6",
description="Choose the branch of um7.",
values=("access-esm1.5", "access-esm1.6"),
multi=False,
)

depends_on("[email protected]", type="run", when="cice=4")
depends_on("[email protected]", type="run", when="cice=5")
# TODO: Use the access-esm1.6 branch when it has been confirmed that
# MOM5 master supports building with generic tracers disabled.
depends_on(
"[email protected] type=ACCESS-CM",
type="run",
when="~generic-tracers",
)
depends_on(
"[email protected] type=ACCESS-ESM",
type="run",
when="+generic-tracers",
)
# um7 is in a private repository
depends_on("[email protected]", type="run")
depends_on("[email protected]", type="run", when="um=access-esm1.5")
depends_on("[email protected]", type="run", when="um=access-esm1.6")

# There is no need for install() since there is no code.
Loading