]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed bug in SparseDirectUMFPACK #12916 13095/head
authorKuljit S. Virk <kuljitvirk@gmail.com>
Fri, 17 Dec 2021 03:26:34 +0000 (19:26 -0800)
committerKuljit S. Virk <kuljitvirk@gmail.com>
Fri, 17 Dec 2021 03:26:34 +0000 (19:26 -0800)
source/lac/sparse_direct.cc

index 44a3232fbc5352c44a6f49772fe71ebefb19efa2..c34239b21a70831f69111f88e081da5b275ce97c 100644 (file)
@@ -199,7 +199,7 @@ SparseDirectUMFPACK::sort_arrays(const BlockSparseMatrix<number> &matrix)
 
               std::swap(Ax[element], Ax[element + 1]);
               if (numbers::NumberTraits<number>::is_complex == true)
-                std::swap(Az[cursor], Az[cursor + 1]);
+                std::swap(Az[element], Az[element + 1]);
 
               ++element;
             }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.