From: Wolfgang Bangerth Date: Wed, 13 May 2020 21:41:24 +0000 (-0600) Subject: Rename variables to their standard names. X-Git-Tag: v9.3.0-rc1~1634^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba1e858d927ff6af78b3f276ab47a8334806c58c;p=dealii.git Rename variables to their standard names. --- diff --git a/examples/step-50/step-50.cc b/examples/step-50/step-50.cc index e5cc7d0b9b..cbd9564731 100644 --- a/examples/step-50/step-50.cc +++ b/examples/step-50/step-50.cc @@ -425,8 +425,8 @@ private: DoFHandler dof_handler; - IndexSet locally_owned_set; - IndexSet locally_relevant_set; + IndexSet locally_owned_dofs; + IndexSet locally_relevant_dofs; AffineConstraints constraints; MatrixType system_matrix; @@ -484,12 +484,12 @@ void LaplaceProblem::setup_system() dof_handler.distribute_dofs(fe); - DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_set); - locally_owned_set = dof_handler.locally_owned_dofs(); + DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs); + locally_owned_dofs = dof_handler.locally_owned_dofs(); - solution.reinit(locally_owned_set, mpi_communicator); - right_hand_side.reinit(locally_owned_set, mpi_communicator); - constraints.reinit(locally_relevant_set); + solution.reinit(locally_owned_dofs, mpi_communicator); + right_hand_side.reinit(locally_owned_dofs, mpi_communicator); + constraints.reinit(locally_relevant_dofs); DoFTools::make_hanging_node_constraints(dof_handler, constraints); VectorTools::interpolate_boundary_values( @@ -525,22 +525,22 @@ void LaplaceProblem::setup_system() case Settings::amg: { #ifdef USE_PETSC_LA - DynamicSparsityPattern dsp(locally_relevant_set); + DynamicSparsityPattern dsp(locally_relevant_dofs); DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints); SparsityTools::distribute_sparsity_pattern(dsp, - locally_owned_set, + locally_owned_dofs, mpi_communicator, - locally_relevant_set); + locally_relevant_dofs); - system_matrix.reinit(locally_owned_set, - locally_owned_set, + system_matrix.reinit(locally_owned_dofs, + locally_owned_dofs, dsp, mpi_communicator); #else - TrilinosWrappers::SparsityPattern dsp(locally_owned_set, - locally_owned_set, - locally_relevant_set, + TrilinosWrappers::SparsityPattern dsp(locally_owned_dofs, + locally_owned_dofs, + locally_relevant_dofs, MPI_COMM_WORLD); DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints); dsp.compress(); @@ -1264,8 +1264,8 @@ void LaplaceProblem::estimate() TimerOutput::Scope timing(computing_timer, "Estimate"); VectorType temp_solution; - temp_solution.reinit(locally_owned_set, - locally_relevant_set, + temp_solution.reinit(locally_owned_dofs, + locally_relevant_dofs, mpi_communicator); temp_solution = solution; @@ -1418,8 +1418,8 @@ void LaplaceProblem::output_results(const unsigned int cycle) TimerOutput::Scope timing(computing_timer, "Output results"); VectorType temp_solution; - temp_solution.reinit(locally_owned_set, - locally_relevant_set, + temp_solution.reinit(locally_owned_dofs, + locally_relevant_dofs, mpi_communicator); temp_solution = solution;