From c11c92830bfc581a82c4dd8914b5d362f0d7b963 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth 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 void test() { - { - Triangulation tr; - - GridGenerator::hyper_cube(tr); - MappingQ mapping(1); - const unsigned int n_properties = spacedim; - Particles::ParticleHandler particle_handler(tr, - mapping, - n_properties); - - std::vector> particle_reference_locations = - QGauss(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 tr; + + GridGenerator::hyper_cube(tr); + MappingQ mapping(1); + const unsigned int n_properties = spacedim; + Particles::ParticleHandler particle_handler(tr, + mapping, + n_properties); + + std::vector> particle_reference_locations = + QGauss(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 particle_handler_copy; particle_handler_copy.copy_from(particle_handler); -- 2.39.5