Skip to content
Merged
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
12 changes: 12 additions & 0 deletions docs/models/build_a_model/build_source_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ spack env activate -p mom5_dev
<terminal-line data="input" directory="[mom5_dev]" class="spack" lineDelay=0></terminal-line>
</terminal-window>

### Set Spack Packages version

By default, spack installations will checkout the latest from the default branch of [access-spack-packages](https://github.com/ACCESS-NRI/access-spack-packages). Occasionally, there will be changes to access-spack-packages which are incompatible with the spack environment being installed.

To exactly match the version of spack packages to the released model, checkout the version (e.g. `2025.03.006`) defined in [ACCESS-ESM1.5 Spack deployment]({{esm1_5_build_config}}/blob/-/config/versions.json):

```
cd /g/data/$PROJECT/$USER/spack/0.22/spack-packages
git fetch --unshallow
git switch -c <spack_packages_version> <spack_packages_version>
```

## Compile Spack environment packages (optional)

It is recommended to first compile all the packages in the newly created _Spack_ environment as is, without making any changes.
Expand Down
Loading