]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify some code.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 19 May 2020 00:12:20 +0000 (18:12 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 19 May 2020 00:22:46 +0000 (18:22 -0600)
examples/step-70/step-70.cc

index 0f19d3f9f252c1f43d1872bbe733b8bd72482b7d..ccb6b5491a05293309758e71e27b015e891afc95 100644 (file)
@@ -1634,9 +1634,6 @@ namespace Step70
                                ".prm",
                              ParameterHandler::Short);
 
-    ComponentMask velocity_mask(spacedim + 1, true);
-    velocity_mask.set(spacedim, false);
-
     const double time_step    = par.final_time / (par.number_of_time_steps - 1);
     double       time         = 0;
     unsigned int output_cycle = 0;
@@ -1696,7 +1693,7 @@ namespace Step70
             tracer_particle_handler,
             locally_relevant_solution,
             tracer_particle_velocities,
-            velocity_mask);
+            fluid_fe->component_mask(FEValuesExtractors::Vector(0)));
 
           tracer_particle_velocities *= time_step;
 

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.