From: Wolfgang Bangerth Date: Mon, 17 Apr 2000 14:07:03 +0000 (+0000) Subject: Add an assertion. X-Git-Tag: v8.0.0~20662 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63f962a2131ac67500a24498541368f21dea5ba;p=dealii.git Add an assertion. git-svn-id: https://svn.dealii.org/trunk@2733 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 + /*