From c11c92830bfc581a82c4dd8914b5d362f0d7b963 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Mon, 19 Oct 2020 20:42:11 -0600 Subject: [PATCH] Clarify the indentation of a test. --- tests/particles/particle_handler_18.cc | 50 +++++++++++++------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/particles/particle_handler_18.cc b/tests/particles/particle_handler_18.cc index fdc5eef9da..9f8088f0a6 100644 --- a/tests/particles/particle_handler_18.cc +++ b/tests/particles/particle_handler_18.cc @@ -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); -- 2.39.5