From: Wolfgang Bangerth Date: Tue, 20 Oct 2020 02:42:11 +0000 (-0600) Subject: Clarify the indentation of a test. X-Git-Tag: v9.3.0-rc1~997^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c11c92830bfc581a82c4dd8914b5d362f0d7b963;p=dealii.git Clarify the indentation of a test. --- 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);