mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: initialize to avoid sca warning
This commit is contained in:
@@ -37,7 +37,7 @@ namespace bda
|
|||||||
template <unsigned int block_size>
|
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 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.
|
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;
|
std::vector<int> randoms;
|
||||||
randoms.resize(rows);
|
randoms.resize(rows);
|
||||||
@@ -365,4 +365,4 @@ INSTANTIATE_BDA_FUNCTIONS(4);
|
|||||||
|
|
||||||
#undef INSTANTIATE_BDA_FUNCTIONS
|
#undef INSTANTIATE_BDA_FUNCTIONS
|
||||||
|
|
||||||
} //namespace bda
|
} //namespace bda
|
||||||
|
|||||||
Reference in New Issue
Block a user