ACCESS-NRI / spack-packages

Spack package repository maintained by ACCESS-NRI
Apache License 2.0
4 stars 4 forks source link

mom5: Add an access-esm1.5 version #104

Closed penguian closed 1 month ago

penguian commented 2 months ago

Add an access-esm1.5 version of MOM5, using the https://github.com/ACCESS-NRI/MOM5/tree/access-esm1.5 branch, possibly invoked by giving a new value of ACCESS-ESM1.5 for the type option. The build of the access-esm1.5 variant should match https://github.com/penguian/access-esm-build-gadi/blob/master/Makefile, which actually uses the ACCESS-CM type option.

bin/mom5xx : src/mom5 $(ENVFILE) lib/oasis | bin
    source $(ENVFILE); cd $</exp; ./MOM_compile.csh --platform=access-cm2 --type=ACCESS-CM
    cp src/mom5/exec/access-cm2/ACCESS-CM/fms_ACCESS-CM.x $@
penguian commented 2 months ago

On second thought, it would probably be better to model the access-esm1.5 variant on the package for oasis3-mct, that is:

    version("master", branch="master")
    version("access-esm1.5", branch="access-esm1.5")