Skip to content
Snippets Groups Projects
Commit 77ff62b3 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add missing assertion

parent 29cf022f
No related branches found
No related tags found
1 merge request!101Initialize arrays types with invalid data (non Release mode)
......@@ -35,7 +35,7 @@ class CRSMatrixDescriptor
Array<IndexType> row_map(m_nb_rows + 1);
row_map[0] = 0;
for (IndexType i = 0; i < m_nb_rows; ++i) {
Assert(non_zeros[i] >= 0);
Assert((non_zeros[i] >= 0) and (non_zeros[i] <= m_nb_columns));
row_map[i + 1] = row_map[i] + non_zeros[i];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment