Skip to content

Commit

Permalink
clean myalgo::findmin
Browse files Browse the repository at this point in the history
  • Loading branch information
halbux committed Oct 17, 2021
1 parent 7fd4310 commit e799600
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/mesh/myalgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,6 @@ int myalgorithm::findmin(std::vector<double> vals, double nt)
std::vector<int> reorderingvector;
stablesort(nt, vals, reorderingvector);

int ind = 0;
for (int i = 0; i < reorderingvector.size(); i++)
{
if (reorderingvector[i] == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/mesh/myalgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> appendneighbourvalues(std::vector<double>& toappendto, std::vector<double>& 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<double> vals, double nt);
};

Expand Down

0 comments on commit e799600

Please sign in to comment.