From 3838a4b98c0a48062329ed20241e4f792cc09c9a Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Mon, 15 Apr 2024 13:55:45 +1000 Subject: [PATCH] spack.yaml: Updated spack.modules to be in line with access-om2-style spack.yaml --- spack.yaml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/spack.yaml b/spack.yaml index c4f62b9..9701b9a 100644 --- a/spack.yaml +++ b/spack.yaml @@ -69,7 +69,32 @@ spack: unify: true modules: default: + enable: + - tcl roots: - tcl: $spack/../modules/access-om3/0.x.0 + tcl: $spack/../release/modules + lmod: $spack/../release/lmod tcl: - naming_scheme: '{name}/{version}' + hash_length: 0 + include: + - access-om3-virtual + - access-om3 + exclude_implicits: true + all: + autoload: direct + conflict: + - '{name}' + environment: + set: + 'SPACK_{name}_ROOT': '{prefix}' + projections: + all: '{name}/{version}' + access-om3-virtual: '{name}/2024.04.0' + access-om3: '{name}/v0.2.0' + + # modules: + # default: + # roots: + # tcl: $spack/../modules/access-om3/0.x.0 + # tcl: + # naming_scheme: '{name}/{version}'