From db230935d03c15b400b2fb651d8a888e0937c415 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 30 Oct 2012 13:32:41 +0000 Subject: [PATCH] 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 --- deal.II/doc/news/changes.h | 6 +++++- deal.II/source/dofs/dof_tools.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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(); -- 2.39.5