]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clarify the indentation of a test. 11059/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Oct 2020 02:42:11 +0000 (20:42 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Oct 2020 02:46:50 +0000 (20:46 -0600)
tests/particles/particle_handler_18.cc

index fdc5eef9da292c18dcc544c5aae422b053f0df66..9f8088f0a648c16addccbf74af17cea1b636b335 100644 (file)
@@ -34,32 +34,32 @@ template <int dim, int spacedim>
 void
 test()
 {
-  {
-    Triangulation<dim, spacedim> tr;
-
-    GridGenerator::hyper_cube(tr);
-    MappingQ<dim, spacedim>                   mapping(1);
-    const unsigned int                        n_properties = spacedim;
-    Particles::ParticleHandler<dim, spacedim> particle_handler(tr,
-                                                               mapping,
-                                                               n_properties);
-
-    std::vector<Point<dim>> particle_reference_locations =
-      QGauss<dim>(3).get_points();
-
-    Particles::Generators::regular_reference_locations(
-      tr, particle_reference_locations, particle_handler, mapping);
-
-    for (auto &particle : particle_handler)
-      {
-        particle.get_properties()[spacedim - 1] = particle.get_location()[0];
-        deallog << "Before copying particle id " << particle.get_id()
-                << " has first property " << particle.get_properties()[0]
-                << " and last property "
-                << particle.get_properties()[spacedim - 1] << " and position "
-                << particle.get_location() << std::endl;
-      }
+  Triangulation<dim, spacedim> tr;
+
+  GridGenerator::hyper_cube(tr);
+  MappingQ<dim, spacedim>                   mapping(1);
+  const unsigned int                        n_properties = spacedim;
+  Particles::ParticleHandler<dim, spacedim> particle_handler(tr,
+                                                             mapping,
+                                                             n_properties);
+
+  std::vector<Point<dim>> particle_reference_locations =
+    QGauss<dim>(3).get_points();
+
+  Particles::Generators::regular_reference_locations(
+    tr, particle_reference_locations, particle_handler, mapping);
+
+  for (auto &particle : particle_handler)
+    {
+      particle.get_properties()[spacedim - 1] = particle.get_location()[0];
+      deallog << "Before copying particle id " << particle.get_id()
+              << " has first property " << particle.get_properties()[0]
+              << " and last property "
+              << particle.get_properties()[spacedim - 1] << " and position "
+              << particle.get_location() << std::endl;
+    }
 
+  {
     Particles::ParticleHandler<dim, spacedim> particle_handler_copy;
     particle_handler_copy.copy_from(particle_handler);
 

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.