mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-26 22:06:26 -06:00
fixed: initialize to avoid sca warning
This commit is contained in:
parent
6b5c7b66fd
commit
86b454f4c8
@ -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);
|
||||
@ -365,4 +365,4 @@ INSTANTIATE_BDA_FUNCTIONS(4);
|
||||
|
||||
#undef INSTANTIATE_BDA_FUNCTIONS
|
||||
|
||||
} //namespace bda
|
||||
} //namespace bda
|
||||
|
Loading…
Reference in New Issue
Block a user