Skip to content

Commit

Permalink
access-esm1p6: add variant cice, generic-tracers and um
Browse files Browse the repository at this point in the history
  • Loading branch information
harshula committed Dec 6, 2024
1 parent 3d0f200 commit dfb2b34
Showing 1 changed file with 40 additions and 6 deletions.
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")
depends_on(
"[email protected] type=ACCESS-ESM",
when="+generic-tracers",
type="run",
)
# 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",
when="~generic-tracers",
type="run",
)
# 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.

0 comments on commit dfb2b34

Please sign in to comment.