Skip to content
Snippets Groups Projects
Commit 9ca08caa authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing OpenFPM versioning in CMake

parent c51b0e61
No related branches found
No related tags found
No related merge requests found
Pipeline #3500 passed
...@@ -11,7 +11,7 @@ if (POLICY CMP0074) ...@@ -11,7 +11,7 @@ if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW) cmake_policy(SET CMP0074 NEW)
endif() endif()
set(openfpm_VERSION 3.3.0) set(openfpm_VERSION 4.0.0)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake_modules/) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake_modules/)
......
...@@ -2530,6 +2530,22 @@ public: ...@@ -2530,6 +2530,22 @@ public:
g_m -= keys.size(); 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 /*! \brief Remove one element from the distributed vector
* *
* \param key remove one element from the vector * \param key remove one element from the vector
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment