From 9ca08caa7b55eedbebfb8eea947d57c95ff84047 Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Wed, 1 Sep 2021 22:19:17 +0200 Subject: [PATCH] Fixing OpenFPM versioning in CMake --- CMakeLists.txt | 2 +- src/Vector/vector_dist.hpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14916b940..54be2db42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ if (POLICY CMP0074) cmake_policy(SET CMP0074 NEW) endif() -set(openfpm_VERSION 3.3.0) +set(openfpm_VERSION 4.0.0) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake_modules/) diff --git a/src/Vector/vector_dist.hpp b/src/Vector/vector_dist.hpp index a659e1efd..5f740f5c7 100644 --- a/src/Vector/vector_dist.hpp +++ b/src/Vector/vector_dist.hpp @@ -2530,6 +2530,22 @@ public: g_m -= keys.size(); } + /*! \brief Remove a set of elements from the distributed vector + * + * \warning keys must be sorted + * + * \param keys vector of elements to eliminate + * \param start from where to eliminate + * + */ + void remove(openfpm::vector<aggregate<int>> & keys, size_t start = 0) + { + v_pos.remove(keys, start); + v_prp.remove(keys, start); + + g_m -= keys.size(); + } + /*! \brief Remove one element from the distributed vector * * \param key remove one element from the vector -- GitLab