From f8a6baa116440137ae20e01bcf01d83e062a6a44 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Sat, 8 Aug 2020 00:16:26 +0200
Subject: [PATCH] Fixing last leak

---
 openfpm_data                                   | 2 +-
 src/Vector/cuda/vector_dist_gpu_MP_tests.cu    | 3 +++
 src/Vector/tests/vector_dist_MP_unit_tests.cpp | 1 +
 src/Vector/vector_dist_kernel.hpp              | 4 ++++
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/openfpm_data b/openfpm_data
index b3e3adc63..980523589 160000
--- a/openfpm_data
+++ b/openfpm_data
@@ -1 +1 @@
-Subproject commit b3e3adc63f0f7b95fc8b2b44f2368c060592444c
+Subproject commit 9805235894b52cae214594c8021a960bb18bc0b0
diff --git a/src/Vector/cuda/vector_dist_gpu_MP_tests.cu b/src/Vector/cuda/vector_dist_gpu_MP_tests.cu
index 8d9f7d825..b6efe2be1 100644
--- a/src/Vector/cuda/vector_dist_gpu_MP_tests.cu
+++ b/src/Vector/cuda/vector_dist_gpu_MP_tests.cu
@@ -748,6 +748,9 @@ BOOST_AUTO_TEST_CASE( vector_dist_multiphase_kernel_cl_test )
 	for (size_t i = 0 ; i < phases.size() ; i++)
 	{
 		cl_ph.add(phases.get(i).getCellListGPU(0.1));
+		auto & test_cl = cl_ph.get(1);
+		int debug = 0 ;
+		debug++;
 	}
 
 	//
diff --git a/src/Vector/tests/vector_dist_MP_unit_tests.cpp b/src/Vector/tests/vector_dist_MP_unit_tests.cpp
index 381da6221..90e55df7a 100644
--- a/src/Vector/tests/vector_dist_MP_unit_tests.cpp
+++ b/src/Vector/tests/vector_dist_MP_unit_tests.cpp
@@ -27,6 +27,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_multiphase_cell_list_test )
 	// Boundary conditions
 	size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
 
+	int rank_test = create_vcluster().rank();
 	float r_cut = 51.0;
 
 	// ghost, big enough to contain the interaction radius
diff --git a/src/Vector/vector_dist_kernel.hpp b/src/Vector/vector_dist_kernel.hpp
index 75e39eca3..9e387902a 100644
--- a/src/Vector/vector_dist_kernel.hpp
+++ b/src/Vector/vector_dist_kernel.hpp
@@ -85,6 +85,10 @@ public:
 	//! Indicate this structure has a function to check the device pointer
 	typedef int yes_has_check_device_pointer;
 
+	vector_dist_ker()
+	:g_m(0)
+	{}
+
 	vector_dist_ker(int g_m, const openfpm::vector_gpu_ker<Point<dim,St>,layout_base> & v_pos,
 							 const openfpm::vector_gpu_ker<typename apply_transform<layout_base,prop>::type,layout_base> & v_prp)
 	:g_m(g_m),v_pos(v_pos),v_prp(v_prp)
-- 
GitLab