]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename two variables.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 10 Apr 2013 11:42:47 +0000 (11:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 10 Apr 2013 11:42:47 +0000 (11:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@29244 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-26/step-26.cc

index fbb4ddafaaf6f5f14a6c2df57f46b5e583c44310..d08937462504f8caa93e2fe4b4fda940d822f57a 100644 (file)
@@ -360,11 +360,11 @@ namespace Step26
   template<int dim>
   void HeatEquation<dim>::run()
   {
-    const unsigned int initial_refinement = (dim == 2 ? 4 : 2);
-    const unsigned int n_pre_refinement_steps = 3;
+    const unsigned int initial_global_refinement = (dim == 2 ? 4 : 2);
+    const unsigned int n_adaptive_pre_refinement_steps = 3;
 
     GridGenerator::hyper_L (triangulation);
-    triangulation.refine_global (initial_refinement);
+    triangulation.refine_global (initial_global_refinement);
 
     setup_system();
 
@@ -443,10 +443,10 @@ start_time_iteration:
         output_results();
 
         if ((timestep_number == 1) &&
-            (pre_refinement_step < n_pre_refinement_steps))
+            (pre_refinement_step < n_adaptive_pre_refinement_steps))
           {
-            refine_mesh (initial_refinement,
-                        initial_refinement + n_pre_refinement_steps);
+            refine_mesh (initial_global_refinement,
+                        initial_global_refinement + n_adaptive_pre_refinement_steps);
             ++pre_refinement_step;
 
            std::cout << std::endl;
@@ -454,8 +454,8 @@ start_time_iteration:
             goto start_time_iteration;
           }
         else if ((timestep_number > 0) && (timestep_number % 5 == 0))
-          refine_mesh (initial_refinement,
-                      initial_refinement + n_pre_refinement_steps);
+          refine_mesh (initial_global_refinement,
+                      initial_global_refinement + n_adaptive_pre_refinement_steps);
 
         old_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.