From: Guido Kanschat Date: Sun, 29 Jan 2006 15:03:55 +0000 (+0000) Subject: delete references to hanging nodes X-Git-Tag: v8.0.0~12474 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7631e82923b3b47c9f2c13e5f1695692b6555092;p=dealii.git delete references to hanging nodes git-svn-id: https://svn.dealii.org/trunk@12202 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h index 100b9d00d2..ebf70d3961 100644 --- a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h +++ b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h @@ -52,8 +52,6 @@ MGTransferPrebuilt::copy_to_mg ( Assert(sizes.size()==mg_dof_handler.get_tria().n_levels(), ExcMatricesNotBuilt()); -// for (unsigned int l=minlevel;l<=maxlevel;++l) -// dst[l].reinit(sizes[l]); std::vector global_dof_indices (dofs_per_cell); std::vector level_dof_indices (dofs_per_cell); @@ -147,10 +145,7 @@ MGTransferPrebuilt::copy_from_mg( // global vector for (unsigned int i=0; iset_zero(dst); + } } @@ -191,17 +186,11 @@ MGTransferPrebuilt::copy_from_mg_add ( // numbering level_cell->get_dof_indices (global_dof_indices); level_cell->get_mg_dof_indices(level_dof_indices); - -//TODO:[GK] Probably wrong for continuous elements - // copy level-wise data to // global vector for (unsigned int i=0; iset_zero(dst); + } } @@ -313,11 +302,6 @@ MGTransferSelect::do_copy_to_mg ( level_cell = mg_dof_handler.begin_active(level); const typename MGDoFHandler::active_cell_iterator level_end = mg_dof_handler.end_active(level); - -//TODO:[?] Treat hanging nodes properly -// The single-level vector is not an FE-function, because the values at -// hanging nodes are set to zero. This should be treated before the restriction. - // Compute coarse level right hand side // by restricting from fine level. for (; level_cell!=level_end; ++level_cell) @@ -466,10 +450,7 @@ MGTransferSelect::do_copy_from_mg ( = src[level](level_dof_indices[i]-level_start); } } - }; - - // clear constrained nodes -//TODO:[GK] constraints->set_zero(dst); + } } @@ -511,9 +492,6 @@ MGTransferSelect::do_copy_from_mg_add ( // numbering level_cell->get_dof_indices (global_dof_indices); level_cell->get_mg_dof_indices(level_dof_indices); - -//TODO:[GK+WB] Probably wrong for continuous elements - // copy level-wise data to // global vector for (unsigned int i=0; i::do_copy_from_mg_add ( } } } - // clear constrained nodes -//TODO:[GK+WB] constraints->set_zero(dst); } @@ -706,9 +682,6 @@ MGTransferBlock::copy_from_mg_add ( // numbering level_cell->get_dof_indices (global_dof_indices); level_cell->get_mg_dof_indices(level_dof_indices); - -//TODO:[GK] Probably wrong for continuous elements - // copy level-wise data to // global vector for (unsigned int i=0; i