From 52d13992ef69c5a832be8529cbd86c189c193f9e Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Mon, 8 Nov 2021 15:58:30 +0100 Subject: [PATCH] Delete fetchElement --- atrip.org | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/atrip.org b/atrip.org index 8981f18..deb8ae5 100644 --- a/atrip.org +++ b/atrip.org @@ -1930,24 +1930,6 @@ specialDistribution(Info info, std::vector const& allTuples) { #+end_src -TODO: ERASE THIS CODE BLOCK -#+begin_src c++ -//determine which element has to be fetched from sources for the next iteration -std::vector fetchElement(ABCTuple cur, ABCTuple suc){ - std::vector result; - ABCTuple inter; - std::sort(cur.begin(), cur.end()); - std::sort(suc.begin(), suc.end()); - std::array::iterator rit, cit, sit; - cit = std::unique(cur.begin(), cur.end()); - sit = std::unique(suc.begin(), suc.end()); - rit = std::set_difference(suc.begin(), sit, cur.begin(), cit, inter.begin()); - result.resize(rit - inter.begin()); - std::copy(inter.begin(), rit, result.begin()); - return result; -} -#+end_src - **** Main The main routine should return the list of tuples to be handled by the current rank.