-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.py
More file actions
executable file
·47 lines (38 loc) · 2.21 KB
/
package.py
File metadata and controls
executable file
·47 lines (38 loc) · 2.21 KB
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
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
from spack.pkg.access.nri.access3 import ACCESS3_VERSIONS
class Access3Share(CMakePackage):
"""Shared coupler/mediator libraries used by the ACCESS version 3 climate
models. This package includes the Community Mediator for Earth Prediction
Systems (CMEPS) and Community Data models for Earth Prediction Systems
(CDEPS) as used in ACCESS-OM3 (and the future ACCESS-CM3 and ACCESS-ESM3 etc
). See Access3 package to produce executable programs."""
homepage = "https://github.com/ACCESS-NRI/access3-share"
git = "https://github.com/ACCESS-NRI/access3-share"
submodules = True
maintainers("anton-seaice", "harshula", "micaeljtoliveira")
license("Apache-2.0", checked_by="anton-seaice")
version("stable", branch="main", preferred=True)
# access3-share uses the same git repository as access3
for tag, commit in ACCESS3_VERSIONS.items():
version(tag, tag=tag, commit=commit)
variant("openmp", default=False, description="Enable OpenMP")
depends_on("cmake@3.18:", type="build")
depends_on("mpi")
depends_on("netcdf-fortran@4.6.0:")
depends_on("esmf@8.7.0:")
depends_on("esmf fflags='-fp-model precise'", when="%intel") # for consistency with access-om3-nuopc builds, e.g. https://github.com/ACCESS-NRI/spack-packages/blob/e2bdb46e56af8ac14183e7ed25da9235486c973a/packages/access-om3-nuopc/package.py#L58
depends_on("fortranxml@4.1.2:")
depends_on("parallelio@2.5.3:")
depends_on(("parallelio "
"fflags='-qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model precise' "
"cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'"),
when="%intel") # consistency with access-om3-nuopc builds, e.g. https://github.com/ACCESS-NRI/spack-packages/blob/e2bdb46e56af8ac14183e7ed25da9235486c973a/packages/access-om3-nuopc/package.py#L65
def cmake_args(self):
args = [
self.define("ACCESS3_LIB_INSTALL", True),
self.define_from_variant("OPENMP", "openmp"),
]
return args