Skip to content

Commit

Permalink
Add ACCESS-OM2-BGC Package (#81)
Browse files Browse the repository at this point in the history
* Added access-om2-bgc package definition

* .ruff.toml: Removed check on line length as part of #73

* Update packages/access-om2-bgc/package.py

Co-authored-by: Aidan Heerdegen <aidan.heerdegen@anu.edu.au>

---------

Co-authored-by: Aidan Heerdegen <aidan.heerdegen@anu.edu.au>
  • Loading branch information
CodeGat and aidanheerdegen authored Mar 21, 2024
1 parent 203abec commit 244d483
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
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.

0 comments on commit 244d483

Please sign in to comment.