diff --git a/example/Vector/4_complex_prop/main.cpp b/example/Vector/4_complex_prop/main.cpp index 7d9edeb5c114347428de288f14e472328097aad0..915f2868ecada4c9610274fbfb090d2af791d67c 100644 --- a/example/Vector/4_complex_prop/main.cpp +++ b/example/Vector/4_complex_prop/main.cpp @@ -181,7 +181,7 @@ int main(int argc, char* argv[]) // Particles are redistribued across the processors but only the scalar,vector, and point properties // are transfert - vd.map_list<KillParticle,scalar,vector,point>(); + vd.map_list<scalar,vector,point>(); // Synchronize the ghost vd.ghost_get<scalar,vector,point>(); diff --git a/src/Vector/vector_dist.hpp b/src/Vector/vector_dist.hpp index 437d6ea3af6664017bf244e2f0effdc9b6ea1bb5..309563ee13a466d7e05b4c1b1489bf0489aeb0b9 100644 --- a/src/Vector/vector_dist.hpp +++ b/src/Vector/vector_dist.hpp @@ -1132,8 +1132,10 @@ public: * contain non local particles * */ - template<typename obp = KillParticle,unsigned int ... prp> void map_list() + template<unsigned int ... prp> void map_list() { + typedef KillParticle obp; + // outgoing particles-id openfpm::vector<size_t> out_part; diff --git a/src/Vector/vector_dist_unit_test.hpp b/src/Vector/vector_dist_unit_test.hpp index d548e0e1761a75dae4f2614f8847f7a29f47089d..d5c12a1df3de34e19e6af10ded343934b36fc3dc 100644 --- a/src/Vector/vector_dist_unit_test.hpp +++ b/src/Vector/vector_dist_unit_test.hpp @@ -1275,7 +1275,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_map_list ) ++it; } - vd.map_list<KillParticle,0,1>(); + vd.map_list<0,1>(); // sync the ghost vd.ghost_get<0>();