Skip to content

Commit

Permalink
Add basic recipe for OpenFOAM-8 (just MC on Eiger) (#60)
Browse files Browse the repository at this point in the history
adds a recipe for creating an image containing OpenFOAM Foundation v8 on Eiger, that:
- builds `openfoam-org@8`
- provides module `openfoam/8`
- provides two views, `openfoam` for the average user that just need the package, and `develop` for users that needs dependencies to build `openfoam-org` from scratch on their own

note: `openfoam-org@8` provided by the spack package is not the very last tagged version on the GitHub repo. I already played with it and I might have a solution to adapt this recipe to actually build a custom tag. But I will take care of it in a separate PR.
  • Loading branch information
albestro authored Jan 30, 2024
1 parent 781c074 commit 2c21af0
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ uenvs:
deploy:
eiger: [zen2]
develop: False
# OpenFOAM Foundation
openfoam-org:
"8":
recipes:
zen2: 8/mc
deploy:
eiger: [zen2]
prgenv-gnu:
"23.11":
recipes:
Expand Down
5 changes: 5 additions & 0 deletions recipes/openfoam-org/8/mc/compilers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bootstrap:
spec: gcc@12
gcc:
specs:
- gcc@12
7 changes: 7 additions & 0 deletions recipes/openfoam-org/8/mc/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: openfoam
description: OpenFOAM Foundation v8
store: /user-environment
spack:
repo: https://github.com/spack/spack.git
commit: releases/v0.21
modules: true
13 changes: 13 additions & 0 deletions recipes/openfoam-org/8/mc/environments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
openfoam-env:
compiler:
- toolchain: gcc
spec: gcc@12
mpi:
spec: cray-mpich
unify: true
specs:
- openfoam-org@8
views:
openfoam:
develop:
exclude: ['openfoam-org']
13 changes: 13 additions & 0 deletions recipes/openfoam-org/8/mc/modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
modules:
default:
arch_folder: false
roots:
tcl: /user-environment/modules
tcl:
all:
autoload: none
hash_length: 0
projections:
openfoam-org: "openfoam/{version}"
include: [openfoam-org]
exclude: ["%gcc@12", "%gcc@7"]

0 comments on commit 2c21af0

Please sign in to comment.