From e2d41d8d11960a478e135dea9fc6355c623e7a7e Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@mpcdf.mpg.de> Date: Thu, 4 Mar 2021 09:09:57 +0100 Subject: [PATCH] fixes initialization order of variables --- cpp/particles/p2p/p2p_ghost_collisions.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cpp/particles/p2p/p2p_ghost_collisions.hpp b/cpp/particles/p2p/p2p_ghost_collisions.hpp index 4bf83c85..4341fd39 100644 --- a/cpp/particles/p2p/p2p_ghost_collisions.hpp +++ b/cpp/particles/p2p/p2p_ghost_collisions.hpp @@ -82,7 +82,13 @@ class p2p_ghost_collisions std::vector <partsize_t> collision_pairs_global; public: - p2p_ghost_collisions(): current_particle_shape(SPHERE), cylinder_width(1.0), cylinder_length(1.0), disk_width(1.0), isActive(true), synchronisation(false) {} + p2p_ghost_collisions(): + isActive(true), + synchronisation(false), + cylinder_width(1.0), + cylinder_length(1.0), + disk_width(1.0), + current_particle_shape(SPHERE) {} void copy_from_p2p_ghost_collisions(const p2p_ghost_collisions<real_number, partsize_t>& src) -- GitLab