From: bangerth Date: Mon, 4 Jan 2010 16:18:06 +0000 (+0000) Subject: Add a few assertions. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4186bd00f87060b2c24ae552ece441dff94d1873;p=dealii-svn.git Add a few assertions. git-svn-id: https://svn.dealii.org/trunk@20281 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/multigrid/mg_dof_tools.cc b/deal.II/deal.II/source/multigrid/mg_dof_tools.cc index 7263edb938..5698265a99 100644 --- a/deal.II/deal.II/source/multigrid/mg_dof_tools.cc +++ b/deal.II/deal.II/source/multigrid/mg_dof_tools.cc @@ -1526,6 +1526,30 @@ extract_inner_interface_dofs (const MGDoFHandler &mg_dof_handler, std::vector > &interface_dofs, std::vector > &boundary_interface_dofs) { + Assert (interface_dofs.size() == mg_dof_handler.get_tria().n_levels(), + ExcDimensionMismatch (interface_dofs.size(), + mg_dof_handler.get_tria().n_levels())); + Assert (boundary_interface_dofs.size() == mg_dof_handler.get_tria().n_levels(), + ExcDimensionMismatch (boundary_interface_dofs.size(), + mg_dof_handler.get_tria().n_levels())); + + for (unsigned int l=0; l &fe = mg_dof_handler.get_fe(); const unsigned int dofs_per_cell = fe.dofs_per_cell;