]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't forget to check for full matrices as well.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 22 Apr 2004 22:34:27 +0000 (22:34 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 22 Apr 2004 22:34:27 +0000 (22:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@9091 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_matrix_base.cc

index a89b66c9d88d51237907694e55e5a657e5d365df..2bfdecd78857847e350f7f22ee626fdc655c9615 100644 (file)
@@ -13,6 +13,7 @@
 
 
 #include <lac/petsc_matrix_base.h>
+#include <lac/petsc_full_matrix.h>
 #include <lac/petsc_sparse_matrix.h>
 #include <lac/petsc_parallel_sparse_matrix.h>
 #include <lac/petsc_vector.h>
@@ -48,7 +49,9 @@ namespace PETScWrappers
                                        // actually stores (remember that
                                        // matrices can be distributed)
       signed int local_row = -1;
-      if (dynamic_cast<const PETScWrappers::SparseMatrix *>(matrix) != 0)
+      if ((dynamic_cast<const PETScWrappers::SparseMatrix *>(matrix) != 0)
+         ||
+         (dynamic_cast<const PETScWrappers::FullMatrix *>(matrix) != 0))
         {
           local_row = this->a_row;
         }

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.