fixed: initialize to avoid sca warning

This commit is contained in:
Arne Morten Kvarving
2021-06-14 09:10:26 +02:00
parent 6b5c7b66fd
commit 86b454f4c8

View File

@@ -37,7 +37,7 @@ namespace bda
template <unsigned int block_size>
int colorBlockedNodes(int rows, const int *CSRRowPointers, const int *CSRColIndices, const int *CSCColPointers, const int *CSCRowIndices, std::vector<int>& colors, int maxRowsPerColor, int maxColsPerColor)
{
int left, c;
int left, c=-1;
const int max_tries = 100; // since coloring is random, it is possible that a coloring fails. In that case, try again.
std::vector<int> randoms;
randoms.resize(rows);