Skip to content

Commit

Permalink
MueLu: fixing the count of aggregated nodes in refactored Phase2a of …
Browse files Browse the repository at this point in the history
…aggregation, see #6325

A piece of logic is wrong in the algorithms that counts
how many nodes have been aggregated in Phase2a of aggregation.
This commit fixes that by individually counting every node
that is being aggregated instead of counting all the nodes in
a newly formed aggregate, at once.
  • Loading branch information
lucbv committed Nov 21, 2019
1 parent c5c6883 commit c63f40b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ namespace MueLu {
if(graph.isLocalNeighborVertex(neigh) &&
aggStat(neigh) == READY &&
aggSize < maxNodesPerAggregate) {
aggStat(neigh) = AGGREGATED;
aggStat(neigh) = AGGREGATED;
vertex2AggId(neigh, 0) = aggIndex;
procWinner(neigh, 0) = myRank;
lNumNonAggregatedNodes = lNumNonAggregatedNodes - 1;
}
}
}
lNumNonAggregatedNodes -= aggSize;
}
}
}, tmpNumNonAggregatedNodes);
Expand Down

0 comments on commit c63f40b

Please sign in to comment.