From: Wolfgang Bangerth Date: Tue, 30 Oct 2012 13:32:41 +0000 (+0000) Subject: Fix a problem where DoFTools::make_flux_sparsity_pattern wasn't prepared to deal... X-Git-Tag: v8.0.0~1913 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db230935d03c15b400b2fb651d8a888e0937c415;p=dealii.git Fix a problem where DoFTools::make_flux_sparsity_pattern wasn't prepared to deal with adaptively refined meshes in 1d. git-svn-id: https://svn.dealii.org/trunk@27236 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index a7517ce660..94f3c94277 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -108,6 +108,11 @@ never working correctly and it is not used.
    +
  1. Fixed: DoFTools::make_flux_sparsity_pattern wasn't prepared to +deal with adaptively refined meshes in 1d. +
    +(Wolfgang Bangerth, 2012/10/30) +
  2. New: Added PETScWrappers::PreconditionParaSails and PETScWrappers::PreconditionNone. PETScWrappers::PreconditionParaSails implements the interface to use the ParaSails sparse approximate @@ -116,7 +121,6 @@ parallel distributed computations and can handle nonsymmetric and also indefinite problems. PETScWrappers::PreconditionNone implements non-preconditioning in PETSc which can be of use together with the PETScWrappers::MatrixFree class. -
    (Martin Steigemann, 2012/10/26) diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index a955d6d26b..4a8de7df18 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -581,7 +581,7 @@ namespace DoFTools { typename DH::cell_iterator neighbor = cell->neighbor(face); - if (cell_face->has_children()) + if (neighbor->has_children()) { for (unsigned int sub_nr = 0; sub_nr != cell_face->number_of_children();