]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: undo Trilinos v11 patching for SuperLU, since it will not work with SuperLU...
authorUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 20:51:39 +0000 (21:51 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 20:51:39 +0000 (21:51 +0100)
deal.II/packages/trilinos.package
deal.II/patches/Trilinos-v11-Amesos_Superludist-v3.3.cpp.patch [moved from deal.II/patches/Trilinos-v11-Amesos_Superludist.cpp.patch with 100% similarity]

index f20d5ef9fda42be55b9a147f126da8a5a2cd894b..fa7a41e63e98881a788d611cef8ec929efd7cccf 100644 (file)
@@ -7,6 +7,15 @@ elif [ ${TRILINOS_MAJOR_VERSION} = "11" ]; then
     SOURCE=https://trilinos.org/oldsite/download/files/
     VERSION=11.14.3
     CHECKSUM=b6e5d6b71f6e554de220aeda51794ffb
+    
+    #Note: For Trilinos v11 we need to force SuperLUDist=OFF,
+    #      since only the deprecated SuperLUDist v3.3 together with an Amesos patch
+    #      (and not the current SuperLUDist v4.x with the same Amesos patch)
+    #      is working.
+    #Note: This issue is resolved by setting
+    #          -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG
+    #      for Trilinos v12; this is neglegted by Trilinos v11 since it is unknown.
+    SuperLUDist=OFF
 
 else
     cecho ${BAD} "Unknown Trilinos version ${TRILINOS_MAJOR_VERSION} forced, please use AUTO|12|11."
@@ -115,15 +124,6 @@ CONFOPTS="${TRILINOS_CONFOPTS} \
           -D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE \
           -D BUILD_SHARED_LIBS:BOOL=ON"
 
-package_specific_setup() {
-    # Apply Amesos patch for Trilinos v11
-    if [ ${TRILINOS_MAJOR_VERSION} = "11" ] && [ ! -z "${SuperLUDist}" ] && [ ${SuperLUDist} = "ON" ]; then
-        # Apply patch to let Trilinos/Amesos work with SuperLUDist
-        cd ${UNPACK_PATH}/${EXTRACTSTO}/packages/amesos/src
-        patch --forward Amesos_Superludist.cpp < ${ORIG_DIR}/${PROJECT}/patches/Trilinos-v11-Amesos_Superludist.cpp.patch || true
-    fi
-}
-
 package_specific_register () {
     export TRILINOS_DIR=${INSTALL_PATH}
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.