Skip to content

Commit 2ebe93e

Browse files
committed
better names?
1 parent 84b8f0b commit 2ebe93e

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/build-ci/manifests/access-esm3/intel.spack.yaml.j2 renamed to .github/build-ci/manifests/access_esm3/intel.spack.yaml.j2

File renamed without changes.

spack_repo/access/nri/build_systems/um_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class UmBasePackage(Package):
158158
when="+DR_HOOK")
159159
depends_on("eccodes +fortran +netcdf", type=("build", "link", "run"),
160160
when="+eccodes")
161-
depends_on("netcdf-fortran@4.5.2", type=("build", "link", "run"),
161+
depends_on("netcdf-fortran@4.5.2:", type=("build", "link", "run"),
162162
when="+netcdf")
163163

164164
phases = ["build", "install"]

spack_repo/access/nri/packages/access3/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"MOM6-CICE6",
1616
"CICE6-WW3",
1717
"MOM6-CICE6-WW3",
18-
"MOM6-UM13",
18+
"MOM6-UM13",
1919
"MOM6-CICE6-UM13",
2020
)
2121

spack_repo/access/nri/packages/um/package.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Um(UmBasePackage):
1515

1616
variant("model", default="vn13", description="Model configuration.",
1717
values=("vn13", "vn13p0-rns", "vn13p1-am", "vn13p5-rns"), multi=False)
18-
18+
variant("access3", default=False)
1919
# List of model variants that have been migrated to Github sources.
2020
# Defined in parent class and overridden here.
2121
github_models = ("vn13", "vn13p1-am")
@@ -46,6 +46,10 @@ class Um(UmBasePackage):
4646
variant("mpi", default=True, description="Build with MPI")
4747
depends_on("mpi", when="+mpi", type=("build", "link", "run"))
4848

49+
with when("+access3"):
50+
depends_on("esmf")
51+
conflicts("~netcdf")
52+
4953
def setup_run_environment(self, env):
5054
"""
5155
Set the built path into the environment.
@@ -81,9 +85,15 @@ def install(self, spec, prefix):
8185

8286
def __create_pkgconfig(self, spec, prefix):
8387

88+
<<<<<<< Updated upstream
8489
um_version = self.spec.version.value
8590

8691
mkdirp(self.__pkgdir)
92+
=======
93+
pkgdir = f"{prefix}/lib/pkgconfig"
94+
95+
mkdirp(pkgdir)
96+
>>>>>>> Stashed changes
8797
for k in self.__libs:
8898
text = f"""\
8999
prefix={prefix}
@@ -92,11 +102,20 @@ def __create_pkgconfig(self, spec, prefix):
92102
includedir=${{prefix}}/include
93103
94104
Name: {k}
105+
<<<<<<< Updated upstream
95106
Description: UM {um_version} {k} Library for Fortran
96107
Version: {um_version}
97108
Libs: -L${{libdir}} -l{k}
98109
Cflags: -I${{includedir}}/{k}
99110
"""
111+
=======
112+
Description: UM {self.spec.version} {k} Library for Fortran
113+
Version: {self.spec.version}
114+
Libs: -L${{libdir}} -l{k}
115+
Cflags: -I${{includedir}}/{k}
116+
"""
117+
118+
>>>>>>> Stashed changes
100119
pcpath = join_path(self.__pkgdir, "um-" + k + ".pc")
101120
with open(pcpath, "w", encoding="utf-8") as pc:
102121
nchars_written = pc.write(text)

0 commit comments

Comments
 (0)