From f6e6862b7471759d064580dc49cc48f16a3bb1cf Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 19 Nov 1999 17:27:05 +0000 Subject: [PATCH] Rename total_dofs to dofs_per_cell. git-svn-id: https://svn.dealii.org/trunk@1911 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_handler.cc | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/deal.II/deal.II/source/dofs/dof_handler.cc b/deal.II/deal.II/source/dofs/dof_handler.cc index 25086213dd..cda55b95f6 100644 --- a/deal.II/deal.II/source/dofs/dof_handler.cc +++ b/deal.II/deal.II/source/dofs/dof_handler.cc @@ -1982,16 +1982,16 @@ void DoFHandler::make_sparsity_pattern (SparseMatrixStruct &sparsity) const Assert (sparsity.n_cols() == n_dofs(), ExcDifferentDimensions (sparsity.n_cols(), n_dofs())); - const unsigned int total_dofs = selected_fe->total_dofs; - vector dofs_on_this_cell(total_dofs); + const unsigned int dofs_per_cell = selected_fe->total_dofs; + vector dofs_on_this_cell(dofs_per_cell); active_cell_iterator cell = begin_active(), endc = end(); for (; cell!=endc; ++cell) { cell->get_dof_indices (dofs_on_this_cell); // make sparsity pattern for this cell - for (unsigned int i=0; i::make_sparsity_pattern (const vector > &mask, SparseMatrixStruct &sparsity) const { - const unsigned int total_dofs = selected_fe->total_dofs; + const unsigned int dofs_per_cell = selected_fe->total_dofs; Assert (selected_fe != 0, ExcNoFESelected()); Assert (sparsity.n_rows() == n_dofs(), @@ -2020,24 +2020,24 @@ DoFHandler::make_sparsity_pattern (const vector > &mask, // first build a mask for each dof, // not like the one given which represents // components - vector > dof_mask(total_dofs, - vector(total_dofs, false)); - for (unsigned int i=0; i > dof_mask(dofs_per_cell, + vector(dofs_per_cell, false)); + for (unsigned int i=0; isystem_to_component_index(i).first] [selected_fe->system_to_component_index(j).first]; - vector dofs_on_this_cell(total_dofs); + vector dofs_on_this_cell(dofs_per_cell); active_cell_iterator cell = begin_active(), endc = end(); for (; cell!=endc; ++cell) { cell->get_dof_indices (dofs_on_this_cell); // make sparsity pattern for this cell - for (unsigned int i=0; i::make_boundary_sparsity_pattern (const vector &dof_to dof_to_boundary_mapping.end()) == (signed int)sparsity.n_rows()-1, ExcInternalError()); - const unsigned int total_dofs = selected_fe->dofs_per_face; - vector dofs_on_this_face(total_dofs); + const unsigned int dofs_per_face = selected_fe->dofs_per_face; + vector dofs_on_this_face(dofs_per_face); active_face_iterator face = begin_active_face(), endf = end_face(); for (; face!=endf; ++face) @@ -2099,8 +2099,8 @@ void DoFHandler::make_boundary_sparsity_pattern (const vector &dof_to ExcInternalError()); // make sparsity pattern for this cell - for (unsigned int i=0; i::make_boundary_sparsity_pattern (const FunctionMap &bounda dof_to_boundary_mapping.end()) == (signed int)sparsity.n_rows()-1, ExcInternalError()); - const unsigned int total_dofs = selected_fe->dofs_per_face; - vector dofs_on_this_face(total_dofs); + const unsigned int dofs_per_face = selected_fe->dofs_per_face; + vector dofs_on_this_face(dofs_per_face); active_face_iterator face = begin_active_face(), endf = end_face(); for (; face!=endf; ++face) @@ -2140,8 +2140,8 @@ void DoFHandler::make_boundary_sparsity_pattern (const FunctionMap &bounda dofs_on_this_face.end()) >=0, ExcInternalError()); // make sparsity pattern for this cell - for (unsigned int i=0; i::distribute_cell_to_dof_vector (const Vector &cell_ active_cell_iterator cell = begin_active(), endc = end(); unsigned int present_cell = 0; - const unsigned int total_dofs = selected_fe->total_dofs; - vector dof_indices (total_dofs); + const unsigned int dofs_per_cell = selected_fe->total_dofs; + vector dof_indices (dofs_per_cell); for (; cell!=endc; ++cell, ++present_cell) { cell->get_dof_indices (dof_indices); - for (unsigned int i=0; i