diff --git a/src/mesh/myalgorithm.cpp b/src/mesh/myalgorithm.cpp index ad42d225..bd588bc9 100755 --- a/src/mesh/myalgorithm.cpp +++ b/src/mesh/myalgorithm.cpp @@ -2196,7 +2196,6 @@ int myalgorithm::findmin(std::vector vals, double nt) std::vector reorderingvector; stablesort(nt, vals, reorderingvector); - int ind = 0; for (int i = 0; i < reorderingvector.size(); i++) { if (reorderingvector[i] == 0) diff --git a/src/mesh/myalgorithm.h b/src/mesh/myalgorithm.h index 81a30e6e..bb634b3f 100755 --- a/src/mesh/myalgorithm.h +++ b/src/mesh/myalgorithm.h @@ -271,7 +271,7 @@ namespace myalgorithm // Append the values of this rank and all neighbour ranks (in case of DDM). Also get the value 'togroup' on each neighbour rank. std::vector appendneighbourvalues(std::vector& toappendto, std::vector& toappend, int togroup); - // Return the index of the min value. The lowest index is returned in case other values are closer than nt to the min value. + // Return the lowest index of any value closer than nt to the min value: int findmin(std::vector vals, double nt); };