From: wolf Date: Fri, 19 Nov 1999 16:39:28 +0000 (+0000) Subject: Rename total_dofs to dofs_per_cell. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c1862c3706e597079acb1d0103a26491dfe9e6;p=dealii-svn.git Rename total_dofs to dofs_per_cell. git-svn-id: https://svn.dealii.org/trunk@1910 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/multigrid.templates.h b/deal.II/deal.II/include/multigrid/multigrid.templates.h index 9bd4273740..7428725849 100644 --- a/deal.II/deal.II/include/multigrid/multigrid.templates.h +++ b/deal.II/deal.II/include/multigrid/multigrid.templates.h @@ -18,17 +18,17 @@ template void MG::copy_to_mg(const Vector& src) { - const unsigned int fe_dofs = mg_dof_handler->get_fe().total_dofs; - const unsigned int face_dofs = mg_dof_handler->get_fe().dofs_per_face; + const unsigned int dofs_per_cell = mg_dof_handler->get_fe().total_dofs; + const unsigned int dofs_per_face = mg_dof_handler->get_fe().dofs_per_face; // set the elements of the vectors // on all levels to zero defect.clear(); // constraints->condense(src); - vector global_dof_indices (fe_dofs); - vector level_dof_indices (fe_dofs); - vector level_face_indices (face_dofs); + vector global_dof_indices (dofs_per_cell); + vector level_dof_indices (dofs_per_cell); + vector level_face_indices (dofs_per_face); // traverse the grid top-down // (i.e. starting with the most @@ -61,7 +61,7 @@ MG::copy_to_mg(const Vector& src) // transfer the global // defect in the vector // into the level-wise one - for (unsigned int i=0; i::copy_to_mg(const Vector& src) if (face->has_children()) { face->get_mg_dof_indices(level_face_indices); - for (unsigned int i=0; i void MG::copy_from_mg(Vector &dst) const { - const unsigned int fe_dofs = mg_dof_handler->get_fe().total_dofs; + const unsigned int dofs_per_cell = mg_dof_handler->get_fe().total_dofs; - vector global_dof_indices (fe_dofs); - vector level_dof_indices (fe_dofs); + vector global_dof_indices (dofs_per_cell); + vector level_dof_indices (dofs_per_cell); DoFHandler::active_cell_iterator global_cell = mg_dof_handler->DoFHandler::begin_active(); @@ -123,7 +123,7 @@ MG::copy_from_mg(Vector &dst) const // copy level-wise data to // global vector - for (unsigned int i=0; i void MG::copy_to_mg(const Vector& src) { - const unsigned int fe_dofs = mg_dof_handler->get_fe().total_dofs; - const unsigned int face_dofs = mg_dof_handler->get_fe().dofs_per_face; + const unsigned int dofs_per_cell = mg_dof_handler->get_fe().total_dofs; + const unsigned int dofs_per_face = mg_dof_handler->get_fe().dofs_per_face; // set the elements of the vectors // on all levels to zero defect.clear(); // constraints->condense(src); - vector global_dof_indices (fe_dofs); - vector level_dof_indices (fe_dofs); - vector level_face_indices (face_dofs); + vector global_dof_indices (dofs_per_cell); + vector level_dof_indices (dofs_per_cell); + vector level_face_indices (dofs_per_face); // traverse the grid top-down // (i.e. starting with the most @@ -61,7 +61,7 @@ MG::copy_to_mg(const Vector& src) // transfer the global // defect in the vector // into the level-wise one - for (unsigned int i=0; i::copy_to_mg(const Vector& src) if (face->has_children()) { face->get_mg_dof_indices(level_face_indices); - for (unsigned int i=0; i void MG::copy_from_mg(Vector &dst) const { - const unsigned int fe_dofs = mg_dof_handler->get_fe().total_dofs; + const unsigned int dofs_per_cell = mg_dof_handler->get_fe().total_dofs; - vector global_dof_indices (fe_dofs); - vector level_dof_indices (fe_dofs); + vector global_dof_indices (dofs_per_cell); + vector level_dof_indices (dofs_per_cell); DoFHandler::active_cell_iterator global_cell = mg_dof_handler->DoFHandler::begin_active(); @@ -123,7 +123,7 @@ MG::copy_from_mg(Vector &dst) const // copy level-wise data to // global vector - for (unsigned int i=0; i