From 2b277c378296b96f5b6ea380e3134371ef0056d4 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Thu, 9 Nov 2017 18:12:16 -0700 Subject: [PATCH] Indent --- tests/particles/particle_handler_04.cc | 14 +++++++------- tests/particles/particle_handler_05.cc | 12 ++++++------ tests/serialization/particle_handler_01.cc | 8 ++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/particles/particle_handler_04.cc b/tests/particles/particle_handler_04.cc index ce03df74c0..5545880d5d 100644 --- a/tests/particles/particle_handler_04.cc +++ b/tests/particles/particle_handler_04.cc @@ -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; } diff --git a/tests/particles/particle_handler_05.cc b/tests/particles/particle_handler_05.cc index 30007a7a82..7a18b2f5ed 100644 --- a/tests/particles/particle_handler_05.cc +++ b/tests/particles/particle_handler_05.cc @@ -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::register_store_callback_function, &particle_handler, - false)); + false)); tr.signals.post_distributed_refinement.connect(std::bind(&Particles::ParticleHandler::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; diff --git a/tests/serialization/particle_handler_01.cc b/tests/serialization/particle_handler_01.cc index 815ab31c20..5a678140a0 100644 --- a/tests/serialization/particle_handler_01.cc +++ b/tests/serialization/particle_handler_01.cc @@ -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::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::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 -- 2.39.5