-D Trilinos_ENABLE_Stratimikos:BOOL=ON \
-D Trilinos_ENABLE_Belos:BOOL=ON \
-D Trilinos_ENABLE_MueLu:BOOL=ON \
- -D Trilinos_ENABLE_Amesos2:BOOL=OFF \
+ -D Trilinos_ENABLE_Amesos2:BOOL=ON \
-D TPL_ENABLE_ParMETIS:BOOL=${ParMETIS} \
-D TPL_ParMETIS_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libparmetis.so \
-D TPL_ENABLE_SuperLUDist:BOOL=${SuperLUDist} \
-D TPL_SuperLUDist_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libsuperlu_dist.so \
-D SuperLUDist_INCLUDE_DIRS:PATH=${INSTALL_PATH}/include/superlu \
+ -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D CMAKE_CXX_FLAGS:STRING=-fPIC -g -O3 \
-D CMAKE_C_FLAGS:STRING=-fPIC -g -O3 \
-D TPL_ENABLE_MPI:BOOL=ON \
-D BUILD_SHARED_LIBS:BOOL=ON"
-package_specific_setup() {
- # Apply patch to let Trilinos/Amesos work with SuperLU_Dist v4.1
- cd ${UNPACK_PATH}/${EXTRACTSTO}/packages/amesos/src
- patch --forward Amesos_Superludist.cpp < ${ORIG_DIR}/${PROJECT}/patches/Amesos_Superludist.cpp.patch || true
-}
-
package_specific_register () {
export TRILINOS_DIR=${INSTALL_PATH}
}