-if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ]; then
- TRILINOS_MAJOR_VERSION=12
-fi
+if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ] || [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
+ SOURCE=http://trilinos.csbsju.edu/download/files/
+ VERSION=12.2.1
+ CHECKSUM=760f14cbce482b4b9a41d1c18297b531
-if [ ${TRILINOS_MAJOR_VERSION} = "11" ]; then
+elif [ ${TRILINOS_MAJOR_VERSION} = "11" ]; then
SOURCE=https://trilinos.org/oldsite/download/files/
VERSION=11.6.2
CHECKSUM=15ea6af5559f872919ff19fe5a322eb6
-fi
-if [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
- SOURCE=http://trilinos.csbsju.edu/download/files/
- VERSION=12.2.1
- CHECKSUM=760f14cbce482b4b9a41d1c18297b531
+else
+ cecho ${BAD} "Unknown Trilinos version ${TRILINOS_MAJOR_VERSION} forced, please use AUTO|12|11."
+ exit
fi
NAME=trilinos-${VERSION}-Source