From: Kuljit S. Virk Date: Fri, 17 Dec 2021 03:26:34 +0000 (-0800) Subject: Fixed bug in SparseDirectUMFPACK #12916 X-Git-Tag: v9.4.0-rc1~687^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13095%2Fhead;p=dealii.git Fixed bug in SparseDirectUMFPACK #12916 --- 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; }