Skip to content
Snippets Groups Projects
Commit f4352ff7 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

Solver : linearSystemCSR : remove old bug that prevented to sort a second

times
parent 27613921
No related branches found
No related tags found
No related merge requests found
...@@ -272,7 +272,8 @@ void sortColumns_(int NbLines, int nnz, INDEX_TYPE *ptr, INDEX_TYPE *jptr, ...@@ -272,7 +272,8 @@ void sortColumns_(int NbLines, int nnz, INDEX_TYPE *ptr, INDEX_TYPE *jptr,
for (int j = jptr[i]; j < jptr[i + 1] - 1; j++){ for (int j = jptr[i]; j < jptr[i + 1] - 1; j++){
ptr[j] = j + 1; ptr[j] = j + 1;
} }
// ptr[jptr[i + 1]] = 0; if (jptr[i + 1] != jptr[i])
ptr[jptr[i + 1] - 1] = 0;
} }
delete[] count; delete[] count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment