]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize variables 3476/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 6 Nov 2016 19:52:57 +0000 (20:52 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 6 Nov 2016 19:52:57 +0000 (20:52 +0100)
include/deal.II/lac/precondition.h

index 691ee727e6734477c36daafb1be43cd308a41f85..ce5ac91966bc787bd2f2ba5050b968ad2f6744b3 100644 (file)
@@ -1980,6 +1980,8 @@ template <typename MatrixType, typename VectorType, typename PreconditionerType>
 inline
 PreconditionChebyshev<MatrixType,VectorType,PreconditionerType>::PreconditionChebyshev ()
   :
+  theta          (1.),
+  delta          (1.),
   is_initialized (false)
 {
 #ifdef DEAL_II_WITH_CXX11
@@ -2016,6 +2018,7 @@ void
 PreconditionChebyshev<MatrixType,VectorType,PreconditionerType>::clear ()
 {
   is_initialized = false;
+  theta = delta = 1.0;
   matrix_ptr = 0;
   data.matrix_diagonal_inverse.reinit(0);
   data.preconditioner.reset();

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.