From f4352ff77b3a4006f15c51aafa702c27714f8c7e Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Tue, 19 Oct 2010 17:54:58 +0000 Subject: [PATCH] Solver : linearSystemCSR : remove old bug that prevented to sort a second times --- Solver/linearSystemCSR.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Solver/linearSystemCSR.cpp b/Solver/linearSystemCSR.cpp index 8b00158f19..898910ba6a 100644 --- a/Solver/linearSystemCSR.cpp +++ b/Solver/linearSystemCSR.cpp @@ -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++){ ptr[j] = j + 1; } - // ptr[jptr[i + 1]] = 0; + if (jptr[i + 1] != jptr[i]) + ptr[jptr[i + 1] - 1] = 0; } delete[] count; -- GitLab