]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix: avoid Epetra_Map in Trilinos interface 1216/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 29 Jul 2015 17:02:01 +0000 (13:02 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 29 Jul 2015 17:02:01 +0000 (13:02 -0400)
use DomainMap instead of ColMap.

source/lac/trilinos_sparse_matrix.cc

index 63f27345bdadb77979b2d2bd2814c2e0f3b10fb8..ad3774460556be6269678df1ceefb4249f386b04 100644 (file)
@@ -1974,7 +1974,7 @@ namespace TrilinosWrappers
   TrilinosScalar
   SparseMatrix::matrix_norm_square (const VectorBase &v) const
   {
-    Assert (matrix->RowMap().SameAs(matrix->ColMap()),
+    Assert (matrix->RowMap().SameAs(matrix->DomainMap()),
             ExcNotQuadratic());
 
     VectorBase temp_vector;
@@ -1990,7 +1990,7 @@ namespace TrilinosWrappers
   SparseMatrix::matrix_scalar_product (const VectorBase &u,
                                        const VectorBase &v) const
   {
-    Assert (matrix->RowMap().SameAs(matrix->ColMap()),
+    Assert (matrix->RowMap().SameAs(matrix->DomainMap()),
             ExcNotQuadratic());
 
     VectorBase temp_vector;

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.