From: Wolfgang Bangerth Date: Thu, 22 Apr 2004 22:34:27 +0000 (+0000) Subject: Don't forget to check for full matrices as well. X-Git-Tag: v8.0.0~15258 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e95920c6d6dd639a564ac05d516435cc577fe60;p=dealii.git Don't forget to check for full matrices as well. git-svn-id: https://svn.dealii.org/trunk@9091 0785d39b-7218-0410-832d-ea1e28bc413d --- 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; }