From 77546148e2711e18cfe3feb7bc87e36f066394c1 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 22 Apr 2004 22:34:27 +0000 Subject: [PATCH] Don't forget to check for full matrices as well. git-svn-id: https://svn.dealii.org/trunk@9091 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_matrix_base.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/source/petsc_matrix_base.cc b/deal.II/lac/source/petsc_matrix_base.cc index a89b66c9d8..2bfdecd788 100644 --- a/deal.II/lac/source/petsc_matrix_base.cc +++ b/deal.II/lac/source/petsc_matrix_base.cc @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -48,7 +49,9 @@ namespace PETScWrappers // actually stores (remember that // matrices can be distributed) signed int local_row = -1; - if (dynamic_cast(matrix) != 0) + if ((dynamic_cast(matrix) != 0) + || + (dynamic_cast(matrix) != 0)) { local_row = this->a_row; } -- 2.39.5