]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove LAPACK warning about uninitialized info variable 6013/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 8 Mar 2018 17:21:40 +0000 (12:21 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 8 Mar 2018 17:21:40 +0000 (12:21 -0500)
source/lac/lapack_full_matrix.cc

index cd23a761cd0dd59ca68e9e2511765c0a2f20154c..e4fe45e388afd004c0b70c476476837473a236d0 100644 (file)
@@ -194,7 +194,7 @@ LAPACKFullMatrix<number>::operator*= (const number factor)
   const types::blas_int m = this->m();
   const types::blas_int n = this->n();
   const types::blas_int lda = this->m();
-  types::blas_int info;
+  types::blas_int info = 0;
   // kl and ku will not be referenced for type = G (dense matrices).
   const types::blas_int kl=0;
   number *values = &this->values[0];
@@ -224,7 +224,7 @@ LAPACKFullMatrix<number>::operator/= (const number factor)
   const types::blas_int m = this->m();
   const types::blas_int n = this->n();
   const types::blas_int lda = this->m();
-  types::blas_int info;
+  types::blas_int info = 0;
   // kl and ku will not be referenced for type = G (dense matrices).
   const types::blas_int kl=0;
   number *values = &this->values[0];

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.