From 523e2da39ff649bd0e700fbb44f09b6bcd5ced90 Mon Sep 17 00:00:00 2001 From: blaisb Date: Sat, 30 May 2020 09:09:39 -0400 Subject: [PATCH] Fixed the order of the properties in the generator Added missing properties in call to insert_global_particles --- include/deal.II/particles/generators.h | 4 ++-- source/particles/generators.cc | 7 ++++--- source/particles/generators.inst.in | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/deal.II/particles/generators.h b/include/deal.II/particles/generators.h index 11cb6f56bc..bd3887a7c2 100644 --- a/include/deal.II/particles/generators.h +++ b/include/deal.II/particles/generators.h @@ -210,9 +210,9 @@ namespace Particles ParticleHandler &particle_handler, const Mapping & mapping = StaticMappingQ1::mapping, + const ComponentMask &components = ComponentMask(), const std::vector> &properties = - std::vector>(), - const ComponentMask &components = ComponentMask()); + std::vector>()); /** * A function that generates particles at the locations of the quadrature diff --git a/source/particles/generators.cc b/source/particles/generators.cc index da677b7552..331b2aa38e 100644 --- a/source/particles/generators.cc +++ b/source/particles/generators.cc @@ -409,8 +409,8 @@ namespace Particles & global_bounding_boxes, ParticleHandler &particle_handler, const Mapping & mapping, - const std::vector> &properties, - const ComponentMask & components) + const ComponentMask & components, + const std::vector> &properties) { const auto &fe = dof_handler.get_fe(); @@ -471,7 +471,8 @@ namespace Particles } } particle_handler.insert_global_particles(points_to_generate, - global_bounding_boxes); + global_bounding_boxes, + properties); } } // namespace Generators } // namespace Particles diff --git a/source/particles/generators.inst.in b/source/particles/generators.inst.in index 51d92313c5..7ea80d0e1a 100644 --- a/source/particles/generators.inst.in +++ b/source/particles/generators.inst.in @@ -61,8 +61,8 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS) ParticleHandler &particle_handler, const Mapping &mapping, - const std::vector> & properties, - const ComponentMask &components); + const ComponentMask & components, + const std::vector> &properties); template void quadrature_points( -- 2.39.5