Skip to content

Commit 98bfbb2

Browse files
authored
Merge pull request #311 from ACCESS-NRI/esm1.6-oasis3-mct-master
Use oasis3-mct master branch in ACCESS-ESM1.6
2 parents f10dbaf + 50861eb commit 98bfbb2

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

packages/mom5/package.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ class Mom5(CMakePackage, MakefilePackage):
6363

6464
with when("@access-om2,legacy-access-om2-bgc"):
6565
depends_on("datetime-fortran")
66-
depends_on("oasis3-mct+deterministic", when="+deterministic")
67-
depends_on("oasis3-mct~deterministic", when="~deterministic")
6866
depends_on("libaccessom2+deterministic", when="+deterministic")
6967
depends_on("libaccessom2~deterministic", when="~deterministic")
7068

71-
with when("@access-esm1.6"):
72-
depends_on("oasis3-mct@access-esm1.5+deterministic", when="+deterministic")
73-
depends_on("oasis3-mct@access-esm1.5~deterministic", when="~deterministic")
69+
with when("@access-om2,legacy-access-om2-bgc,access-esm1.6"):
70+
depends_on("oasis3-mct+deterministic", when="+deterministic")
71+
depends_on("oasis3-mct~deterministic", when="~deterministic")
7472

7573
# NOTE: Spack will also match "access-om2-legacy-bgc" here, that's why
7674
# it has been renamed to "legacy-access-om2-bgc".

packages/oasis3-mct/package.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,22 @@ class Oasis3Mct(MakefilePackage):
1717

1818
maintainers("harshula", "penguian")
1919

20+
version("stable", branch="master", preferred=True)
2021
version(
2122
"upstream",
2223
branch="OASIS3-MCT_5.0",
2324
git="https://gitlab.com/cerfacs/oasis3-mct.git",
2425
)
25-
version("access-om2", branch="master", preferred=True)
26+
# TODO: Remove the "access-om2" once it is no longer being used anywhere
27+
version("access-om2", branch="master")
2628
version("access-esm1.5", branch="access-esm1.5")
2729

2830
variant("deterministic", default=False, description="Deterministic build.")
2931
variant("optimisation_report", default=False, description="Generate optimisation reports.")
3032

31-
with when("@:access-esm0,access-esm2:"):
32-
depends_on("netcdf-fortran@4.5.2:")
33-
# Depend on virtual package "mpi".
34-
depends_on("mpi")
35-
with when("@access-esm1.5"):
36-
depends_on("netcdf-fortran@4.5.1:")
37-
# Depend on "openmpi".
38-
depends_on("openmpi")
33+
depends_on("netcdf-fortran@4.5.2:")
34+
# Depend on virtual package "mpi".
35+
depends_on("mpi")
3936

4037
phases = ["edit", "build", "install"]
4138

@@ -143,7 +140,7 @@ def edit(self, spec, prefix):
143140
f = $(F90)
144141
"""
145142

146-
config["gcc"] = f"""
143+
config["gcc"] = """
147144
# Compiling and other commands
148145
MAKE = make
149146
F90 = mpif90 -Wall -fallow-argument-mismatch
@@ -187,7 +184,7 @@ def edit(self, spec, prefix):
187184
# Add support for the ifx compiler
188185
config["oneapi"] = config["intel"]
189186

190-
config["post"] = f"""
187+
config["post"] = """
191188
f90FLAGS_1 = $(F90FLAGS_1)
192189
FFLAGS_1 = $(F90FLAGS_1)
193190
fFLAGS_1 = $(F90FLAGS_1)

0 commit comments

Comments
 (0)