]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't allow 64bit-indices in PreconditionAMGMueLu 3974/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 14 Feb 2017 13:37:24 +0000 (14:37 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 14 Feb 2017 14:04:59 +0000 (15:04 +0100)
include/deal.II/lac/trilinos_precondition.h
source/lac/trilinos_precondition_muelu.cc
tests/lac/linear_operator_10.with_cxx11=on.with_trilinos=on.with_64bit_indices=off.output [moved from tests/lac/linear_operator_10.with_cxx11=on.with_trilinos=on.output with 100% similarity]
tests/lac/linear_operator_10a.with_cxx11=on.with_trilinos=on.with_64bit_indices=off.output [moved from tests/lac/linear_operator_10a.with_cxx11=on.with_trilinos=on.output with 100% similarity]

index 734512ee1d2ca1e87d8315898ec56258319b5db2..94d6b3f97f8d65b2cc2a1213e21b80720422ff63 100644 (file)
@@ -1618,9 +1618,10 @@ namespace TrilinosWrappers
    * except for the higher_order_elements parameter which does not exist in
    * PreconditionerAMGMueLu.
    *
-   * This class requires Trilinos 11.14 or higher.
+   * @note This class requires Trilinos 11.14 or higher. At the moment 64bit-indices
+   * are not supported.
    *
-   * This interface should not be considered as stable.
+   * @warning This interface should not be considered as stable.
    *
    * @ingroup TrilinosWrappers
    * @ingroup Preconditioners
@@ -1762,6 +1763,11 @@ namespace TrilinosWrappers
       const char *coarse_type;
     };
 
+    /**
+     * Constructor.
+     */
+    PreconditionAMGMueLu();
+
     /**
      * Destructor.
      */
index 149783fb9f9c17541609ad5e22d377c2156eec4f..834bf228acffe32897df18dd6656eefde0ee8736 100644 (file)
@@ -100,6 +100,16 @@ namespace TrilinosWrappers
   {}
 
 
+
+  PreconditionAMGMueLu::PreconditionAMGMueLu()
+  {
+#ifdef DEAL_II_WITH_64BIT_INDICES
+    AssertThrow (false, ExcMessage("PreconditionAMGMueLu does not support 64bit-indices!"));
+#endif
+  }
+
+
+
   PreconditionAMGMueLu::~PreconditionAMGMueLu()
   {
     preconditioner.reset();

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.