From 233726de11968d71c00a074b38186b245024f1e5 Mon Sep 17 00:00:00 2001 From: Stephan Schulz <stephan.schulz-x2q@rub.de> Date: Wed, 25 Nov 2020 15:47:38 +0100 Subject: [PATCH] remove getNNeighbors, just use size() on neighbors --- example/ALL_test.cpp | 2 +- include/ALL.hpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/example/ALL_test.cpp b/example/ALL_test.cpp index 5342087..b7fe274 100644 --- a/example/ALL_test.cpp +++ b/example/ALL_test.cpp @@ -1830,9 +1830,9 @@ int main(int argc, char **argv) { #ifdef ALL_VORONOI_ACTIVE case ALL::LB_t::VORONOI: { // get neighbor information - int nNeighbors = lb_obj.getNNeighbors(); std::vector<double> neighbor_vertices = lb_obj.getNeighborVertices(); std::vector<int> neighbors = lb_obj.getNeighbors(); + int nNeighbors = neighbors.size(); // compute voronoi cells diff --git a/include/ALL.hpp b/include/ALL.hpp index 1debe74..9635dff 100644 --- a/include/ALL.hpp +++ b/include/ALL.hpp @@ -434,12 +434,6 @@ public: /// @result scalar work or first value of vector work W getWork() { return balancer->getWork().at(0); } - /// method to get the number of neigbors the local domain has - /// @result int the number of neighbors the local domain has in total - int getNNeighbors() { - return balancer->getNeighbors().size(); - } - /// method to provide a list of the ranks of the neighbors the local domain /// has in all directions /// @result vector if neighboring ranks -- GitLab