Skip to content
Snippets Groups Projects
Commit f71b4c2f authored by Oriol Tintó Prims's avatar Oriol Tintó Prims
Browse files

Add --first to load icon.

parent 4575bf13
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
......@@ -34,7 +34,9 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
fi
spack install $SPACK_BUILD_ICON
spack load "icon-nwp@${ICON_VERSION}%${COMPILER}"
#TODO: had some problems with spack load when more than one version is available, adding --first to overcome that
# although in principle we should not install the model if its already installed.
spack load --first "icon-nwp@${ICON_VERSION}%${COMPILER}"
else
echo "\%icon.spack_cmd\% is not defined. If you want to compile icon with spack, please provide a spack compile instruction string in your build.yml"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment