From d63f962a2131ac67500a24498541368f21dea5ba Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 17 Apr 2000 14:07:03 +0000 Subject: [PATCH] Add an assertion. git-svn-id: https://svn.dealii.org/trunk@2733 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_tools.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 1a7cceb263..dc8c1768af 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -755,6 +755,18 @@ DoFTools::compute_intergrid_constraints (const DoFHandler &coa == fine_fe.base_element (fine_fe.component_to_base(fine_component)), ExcFiniteElementsDontMatch()); + +#ifdef DEBUG + // if in debug mode, check whether + // the coarse grid is indeed + // coarser everywhere than the fine + // grid + for (typename DoFHandler::active_cell_iterator cell=coarse_grid.begin_active(); + cell != coarse_grid.end(); ++cell) + Assert (cell->level() <= coarse_to_fine_grid_map[cell]->level(), + ExcGridNotCoarser()); +#endif + /* -- 2.39.5