]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: apply Trilinos 11 Amesos/SuperLU patch
authorUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 19:05:03 +0000 (20:05 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 19:05:03 +0000 (20:05 +0100)
deal.II/packages/trilinos.package
deal.II/patches/Trilinos-v11-Amesos_Superludist.cpp.patch [new file with mode: 0644]

index 2cae467f6d233c9fac5c3d165f5fdfffa387fbfe..f20d5ef9fda42be55b9a147f126da8a5a2cd894b 100644 (file)
@@ -115,6 +115,15 @@ 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}
 }
diff --git a/deal.II/patches/Trilinos-v11-Amesos_Superludist.cpp.patch b/deal.II/patches/Trilinos-v11-Amesos_Superludist.cpp.patch
new file mode 100644 (file)
index 0000000..be38fd7
--- /dev/null
@@ -0,0 +1,6 @@
+476,477c476,477
+<     else if( IterRefine_ == "DOUBLE" ) PrivateSuperluData_->options_.IterRefine = DOUBLE;
+<     else if( IterRefine_ == "EXTRA" ) PrivateSuperluData_->options_.IterRefine = EXTRA;
+---
+>     else if( IterRefine_ == "DOUBLE" ) PrivateSuperluData_->options_.IterRefine = SLU_DOUBLE;
+>     else if( IterRefine_ == "EXTRA" ) PrivateSuperluData_->options_.IterRefine = SLU_EXTRA;

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.