-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.py
71 lines (60 loc) · 2.23 KB
/
package.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# Copyright 2024 ACCESS-NRI
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class AccessEsm1p6(BundlePackage):
"""ACCESS-ESM1.6 bundle contains the coupled UM7, CICE4/CICE5 and MOM5
models.
ACCESS-ESM1.6 comprises of:
* The UKMO UM atmospheric model (v7.3), in the same configuration as
ACCESS1.4, at N96 (1.875×1.25 degree), 38 level resolution
* 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). 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", "harshula")
version("latest")
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", 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.