From 84b95a0a30070343aff99230b642d2e2ea9e6a4a Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Wed, 8 Jul 2020 20:04:08 +0200 Subject: [PATCH] Adding subset --- openfpm_numerics | 2 +- src/Vector/vector_dist.hpp | 9 +++++++++ src/Vector/vector_dist_subset.hpp | 10 ++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/openfpm_numerics b/openfpm_numerics index 8865e41b8..4643a68aa 160000 --- a/openfpm_numerics +++ b/openfpm_numerics @@ -1 +1 @@ -Subproject commit 8865e41b8572cf0a8385562947c1f630dfcfff7c +Subproject commit 4643a68aa636c1be35a4a5381780acb3ad1abeed diff --git a/src/Vector/vector_dist.hpp b/src/Vector/vector_dist.hpp index 922853071..0d05a1fce 100644 --- a/src/Vector/vector_dist.hpp +++ b/src/Vector/vector_dist.hpp @@ -2775,6 +2775,15 @@ public: return key; } + /*! \brief Indicate that this class is not a subset + * + * \return false + * + */ + bool isSubset() const + { + return false; + } #ifdef CUDA_GPU diff --git a/src/Vector/vector_dist_subset.hpp b/src/Vector/vector_dist_subset.hpp index 6a214d2e3..fc47f7c0d 100644 --- a/src/Vector/vector_dist_subset.hpp +++ b/src/Vector/vector_dist_subset.hpp @@ -227,6 +227,16 @@ public: return getCellList<CellL>(r_cut, g,no_se3); } + /*! \brief Indicate that this class is not a subset + * + * \return false + * + */ + bool isSubset() const + { + return true; + } + /*! \brief Construct a cell list starting from the stored particles * * It differ from the get getCellList for an additional parameter, in case the -- GitLab