diff --git a/src/Vector/vector_dist_comm.hpp b/src/Vector/vector_dist_comm.hpp index fa00ed674652c072007b6a18ba385ff9cc6ccd47..00baad340d0631944fba8356b72f859aa317274e 100644 --- a/src/Vector/vector_dist_comm.hpp +++ b/src/Vector/vector_dist_comm.hpp @@ -846,7 +846,8 @@ public: typedef openfpm::vector<prp_object> send_vector; // reset the ghost part - v_pos.resize(g_m); + if (opt != NO_POSITION) + v_pos.resize(g_m); v_prp.resize(g_m); // Label all the particles