]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a piece of code work for std::complex data types. 5394/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Oct 2017 21:46:42 +0000 (15:46 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 4 Nov 2017 01:59:36 +0000 (19:59 -0600)
include/deal.II/lac/la_parallel_block_vector.templates.h

index 2086e6518e1e4329eedab1f87eb75ff243293cb1..8d266fa6df49d93653e11301d2c060ce788ceb40 100644 (file)
@@ -830,7 +830,7 @@ namespace LinearAlgebra
               dealii::ExcDimensionMismatch(matrix.n(),n));
 
       // reset the matrix
-      matrix = Number();
+      matrix = typename FullMatrixType::value_type(0.0);
 
       set_symmetric(matrix, symmetric);
       if (symmetric)

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.