]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename variables to their standard names.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 May 2020 21:41:24 +0000 (15:41 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 14 May 2020 20:26:27 +0000 (14:26 -0600)
examples/step-50/step-50.cc

index e5cc7d0b9b4df735c2cfd8b2c1decdef5bba2424..cbd95647313dab783c50debab8db68356ac5557c 100644 (file)
@@ -425,8 +425,8 @@ private:
 
   DoFHandler<dim> dof_handler;
 
-  IndexSet                  locally_owned_set;
-  IndexSet                  locally_relevant_set;
+  IndexSet                  locally_owned_dofs;
+  IndexSet                  locally_relevant_dofs;
   AffineConstraints<double> constraints;
 
   MatrixType             system_matrix;
@@ -484,12 +484,12 @@ void LaplaceProblem<dim, degree>::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<dim, degree>::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<dim, degree>::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<dim, degree>::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;
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.