Skip to content

Commit b7cbf16

Browse files
committed
v2
1 parent 408751d commit b7cbf16

1 file changed

Lines changed: 0 additions & 74 deletions

File tree

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

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -40,80 +40,6 @@ class Um(UmBasePackage):
4040
depends_on("gcom@8.3", when="@13.5:13.7", type=("build", "link"))
4141
depends_on("gcom@8.4", when="@13.8", type=("build", "link"))
4242
depends_on("gcom@8.4:", when="@13.9:", type=("build", "link"))
43-
<<<<<<< Updated upstream
44-
=======
45-
depends_on("fiat@um", type=("build", "link", "run"),
46-
when="+DR_HOOK")
47-
depends_on("eccodes +fortran +netcdf", type=("build", "link", "run"),
48-
when="+eccodes")
49-
depends_on("netcdf-fortran@4.5.2", type=("build", "link", "run"),
50-
when="+netcdf")
51-
52-
phases = ["build", "install"]
53-
54-
# The dependency name, include paths, and ld_flags from
55-
# the FCM config for each library configured via FCM.
56-
_lib_cfg = {
57-
"DR_HOOK": {
58-
"includes": [
59-
join_path("include", "fiat"),
60-
join_path("module", "fiat"),
61-
join_path("module", "parkind_dp")],
62-
"dep_name": "fiat",
63-
"fcm_name": "drhook",
64-
"fcm_ld_flags": "-lfiat -lparkind_dp"},
65-
"eccodes": {
66-
"includes": ["include"],
67-
"dep_name": "eccodes",
68-
"fcm_name": "eccodes",
69-
"fcm_ld_flags": "-leccodes_f90 -leccodes"},
70-
"netcdf": {
71-
"includes": ["include"],
72-
"dep_name": "netcdf-fortran",
73-
"fcm_name": "netcdf",
74-
"fcm_ld_flags": "-lnetcdff -lnetcdf"}}
75-
76-
# Optional Github sources to be used in build (i.e. AM3)
77-
_resource_cfg = {
78-
"jules_ref": {
79-
"sources_var": "jules_sources",
80-
"git_url": "https://github.com/ACCESS-NRI/JULES.git",
81-
"subdir": "jules"},
82-
"um_ref": {
83-
"sources_var": "um_sources",
84-
"git_url": "https://github.com/ACCESS-NRI/UM.git",
85-
"subdir": "um"}}
86-
87-
__builddir = "build-atmos"
88-
# __incdir = join_path(__builddir, "build", "lib")
89-
__libdir = join_path(__builddir, "lib")
90-
__pkgdir = join_path(__libdir, "pkgconfig")
91-
92-
def _config_file_path(self, model):
93-
"""
94-
Return the pathname of the Rose app config file
95-
corresponding to model.
96-
"""
97-
return join_path(
98-
self.package_dir, "model", model, "rose-app.conf")
99-
100-
101-
def _get_linker_args(self, spec, fcm_libname):
102-
"""
103-
Return the linker flags corresponding to fcm_libname,
104-
a library name configured via FCM.
105-
"""
106-
dep_name = self._lib_cfg[fcm_libname]["dep_name"]
107-
ld_flags = [
108-
spec[dep_name].libs.ld_flags,
109-
self._lib_cfg[fcm_libname]["fcm_ld_flags"]]
110-
# The reason for the explicit -rpath is:
111-
# https://github.com/ACCESS-NRI/spack-packages/issues/14#issuecomment-1653651447
112-
rpaths = ["-Wl,-rpath=" + d for d in spec[dep_name].libs.directories]
113-
114-
# Both ld_flags and rpaths are lists of strings.
115-
return " ".join(ld_flags + rpaths)
116-
>>>>>>> Stashed changes
11743

11844
# Include openmpi directly.
11945
# https://github.com/ACCESS-NRI/access-spack-packages/issues/293

0 commit comments

Comments
 (0)