From e89029b939ffe15683571cf1b2be3fbc5aa596ef Mon Sep 17 00:00:00 2001 From: "Kuljit S. Virk" Date: Thu, 16 Dec 2021 19:26:34 -0800 Subject: [PATCH] Fixed bug in SparseDirectUMFPACK #12916 --- source/lac/sparse_direct.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lac/sparse_direct.cc b/source/lac/sparse_direct.cc index 44a3232fbc..c34239b21a 100644 --- a/source/lac/sparse_direct.cc +++ b/source/lac/sparse_direct.cc @@ -199,7 +199,7 @@ SparseDirectUMFPACK::sort_arrays(const BlockSparseMatrix &matrix) std::swap(Ax[element], Ax[element + 1]); if (numbers::NumberTraits::is_complex == true) - std::swap(Az[cursor], Az[cursor + 1]); + std::swap(Az[element], Az[element + 1]); ++element; } -- 2.39.5