]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Modify step-70 to use new enter_subsection()
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 12 Jan 2021 22:52:34 +0000 (23:52 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 12 Jan 2021 22:52:34 +0000 (23:52 +0100)
examples/step-70/step-70.cc

index e887674939ebe153754aa54b8e983f9f41598a11..165f7c079885c0eb58557f517d5f58fc1fef8aa5 100644 (file)
@@ -383,45 +383,37 @@ namespace Step70
     // solid domain, and `Particle grid` is used to distribute some tracer
     // particles, that are advected with the velocity and only used as
     // passive tracers.
-    enter_my_subsection(this->prm);
-    this->prm.enter_subsection("Grid generation");
+    enter_subsection("Grid generation");
     {
-      this->prm.add_parameter("Fluid grid generator", name_of_fluid_grid);
-      this->prm.add_parameter("Fluid grid generator arguments",
-                              arguments_for_fluid_grid);
+      add_parameter("Fluid grid generator", name_of_fluid_grid);
+      add_parameter("Fluid grid generator arguments", arguments_for_fluid_grid);
 
-      this->prm.add_parameter("Solid grid generator", name_of_solid_grid);
-      this->prm.add_parameter("Solid grid generator arguments",
-                              arguments_for_solid_grid);
+      add_parameter("Solid grid generator", name_of_solid_grid);
+      add_parameter("Solid grid generator arguments", arguments_for_solid_grid);
 
-      this->prm.add_parameter("Particle grid generator", name_of_particle_grid);
-      this->prm.add_parameter("Particle grid generator arguments",
-                              arguments_for_particle_grid);
+      add_parameter("Particle grid generator", name_of_particle_grid);
+      add_parameter("Particle grid generator arguments",
+                    arguments_for_particle_grid);
     }
-    this->prm.leave_subsection();
-    leave_my_subsection(this->prm);
+    leave_subsection();
 
 
 
-    enter_my_subsection(this->prm);
-    this->prm.enter_subsection("Refinement and remeshing");
+    enter_subsection("Refinement and remeshing");
     {
-      this->prm.add_parameter("Refinement step frequency",
-                              refinement_frequency);
-      this->prm.add_parameter("Refinement maximal level", max_level_refinement);
-      this->prm.add_parameter("Refinement minimal level", min_level_refinement);
-      this->prm.add_parameter("Refinement strategy",
-                              refinement_strategy,
-                              "",
-                              Patterns::Selection(
-                                "fixed_fraction|fixed_number"));
-      this->prm.add_parameter("Refinement coarsening fraction",
-                              coarsening_fraction);
-      this->prm.add_parameter("Refinement fraction", refinement_fraction);
-      this->prm.add_parameter("Maximum number of cells", max_cells);
+      add_parameter("Refinement step frequency", refinement_frequency);
+      add_parameter("Refinement maximal level", max_level_refinement);
+      add_parameter("Refinement minimal level", min_level_refinement);
+      add_parameter("Refinement strategy",
+                    refinement_strategy,
+                    "",
+                    this->prm,
+                    Patterns::Selection("fixed_fraction|fixed_number"));
+      add_parameter("Refinement coarsening fraction", coarsening_fraction);
+      add_parameter("Refinement fraction", refinement_fraction);
+      add_parameter("Maximum number of cells", max_cells);
     }
-    this->prm.leave_subsection();
-    leave_my_subsection(this->prm);
+    leave_subsection();
 
     // The final task is to correct the default dimension for the right hand
     // side function and define a meaningful default angular velocity instead of

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.