Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ACCESS-OM2-BGC Package #81

Merged
merged 3 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
select = ["E","F"]
ignore = ["E221","E241","E272","E731", "F403","F405","F821"]
line-length = 88
ignore = ["E221","E241","E272","E501","E731", "F403","F405","F821"]
output-format = "github"

# "E129", "F999" aren't supported
30 changes: 30 additions & 0 deletions packages/access-om2-bgc/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# Copyright 2023 ACCESS-NRI
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *

class AccessOm2Bgc(BundlePackage):
"""ACCESS-OM2-BGC bundle contains the coupled CICE5 and MOM5 (BGC variant) models."""

homepage = "https://www.access-nri.org.au"

git = "https://github.com/ACCESS-NRI/ACCESS-OM2-BGC.git"

maintainers = ["harshula"]

version("latest")

variant("deterministic", default=False, description="Deterministic build.")

depends_on("libaccessom2+deterministic", when="+deterministic")
depends_on("libaccessom2~deterministic", when="~deterministic")
depends_on("cice5+deterministic", when="+deterministic")
depends_on("cice5~deterministic", when="~deterministic")
depends_on("mom5+deterministic type=ACCESS-OM-BGC", when="+deterministic")
depends_on("mom5~deterministic type=ACCESS-OM-BGC", when="~deterministic")

# There is no need for install() since there is no code.
Loading