]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Indent
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 10 Nov 2017 01:12:16 +0000 (18:12 -0700)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Fri, 10 Nov 2017 01:12:16 +0000 (18:12 -0700)
tests/particles/particle_handler_04.cc
tests/particles/particle_handler_05.cc
tests/serialization/particle_handler_01.cc

index ce03df74c0c01402aab95869adfafdbc1187c371..5545880d5d5f729937131b7d0a5cb9a7bacf1bf3 100644 (file)
@@ -62,7 +62,7 @@ void test ()
           deallog << "Before sort particle id " << particle->get_id()
                   << " is in cell " << particle->get_surrounding_cell(tr)
                   << " on process " << Utilities::MPI::this_mpi_process(tr.get_communicator())
-        << std::flush << std::endl;
+                  << std::flush << std::endl;
       }
 
 
@@ -71,9 +71,9 @@ void test ()
 
     for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle)
       deallog << "After sort particle id " << particle->get_id()
-      << " is in cell " << particle->get_surrounding_cell(tr)
-      << " on process " << Utilities::MPI::this_mpi_process(tr.get_communicator())
-    << std::flush << std::endl;
+              << " is in cell " << particle->get_surrounding_cell(tr)
+              << " on process " << Utilities::MPI::this_mpi_process(tr.get_communicator())
+              << std::flush << std::endl;
 
     // Move all points up by 0.5. This will change cell for particle 1, and will
     // move particle 2 out of the domain. Note that we need to change the coordinate
@@ -86,9 +86,9 @@ void test ()
     particle_handler.sort_particles_into_subdomains_and_cells();
     for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle)
       deallog << "After shift particle id " << particle->get_id()
-      << " is in cell " << particle->get_surrounding_cell(tr)
-      << " on process " << Utilities::MPI::this_mpi_process(tr.get_communicator())
-    << std::flush << std::endl;
+              << " is in cell " << particle->get_surrounding_cell(tr)
+              << " on process " << Utilities::MPI::this_mpi_process(tr.get_communicator())
+              << std::flush << std::endl;
 
   }
 
index 30007a7a82a26527651ff4ce84b4dc03e9e0daef..7a18b2f5edb0134ae44582fb070e91a72d30050d 100644 (file)
@@ -84,34 +84,34 @@ void test ()
     // is possible (in particular that the order of serialization/deserialization is preserved).
     tr.signals.pre_distributed_refinement.connect(std::bind(&Particles::ParticleHandler<dim,spacedim>::register_store_callback_function,
                                                             &particle_handler,
-                                                                   false));
+                                                            false));
 
     tr.signals.post_distributed_refinement.connect(std::bind(&Particles::ParticleHandler<dim,spacedim>::register_load_callback_function,
                                                              &particle_handler,
-                                                                   false));
+                                                             false));
 
     create_regular_particle_distribution(particle_handler,tr);
 
     for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle)
       deallog << "Before refinement particle id " << particle->get_id()
-      << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
+              << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
 
     // Check that all particles are moved to children
     tr.refine_global(1);
 
     for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle)
       deallog << "After refinement particle id " << particle->get_id()
-      << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
+              << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
 
     // Reverse the refinement and check again
     for (auto cell = tr.begin_active(); cell != tr.end(); ++cell)
-        cell->set_coarsen_flag();
+      cell->set_coarsen_flag();
 
     tr.execute_coarsening_and_refinement();
 
     for (auto particle = particle_handler.begin(); particle != particle_handler.end(); ++particle)
       deallog << "After coarsening particle id " << particle->get_id()
-      << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
+              << " is in cell " << particle->get_surrounding_cell(tr) << std::endl;
   }
 
   deallog << "OK" << std::endl;
index 815ab31c20e959f9861145673c9fc4fd2d498296..5a678140a0a2cdf133411bf84df2b47b56d57516 100644 (file)
@@ -86,8 +86,8 @@ void test ()
   // When doing this, check that transferring a solution and particles during the same refinement
   // is possible (in particular that the order of serialization/deserialization is preserved).
   tr.signals.pre_distributed_save.connect(std::bind(&Particles::ParticleHandler<dim,spacedim>::register_store_callback_function,
-                                                          &particle_handler,
-                                                                 true));
+                                                    &particle_handler,
+                                                    true));
 
   // save data to archive
   std::ostringstream oss;
@@ -119,8 +119,8 @@ void test ()
   // When doing this, check that transferring a solution and particles during the same refinement
   // is possible (in particular that the order of serialization/deserialization is preserved).
   tr.signals.post_distributed_load.connect(std::bind(&Particles::ParticleHandler<dim,spacedim>::register_load_callback_function,
-                                                           &particle_handler,
-                                                                 true));
+                                                     &particle_handler,
+                                                     true));
 
   // verify correctness of the serialization. Note that the deserialization of the
   // particle handler has to happen before the triangulation (otherwise it does not know

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.