]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do rounding explicitly.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 8 Nov 2010 14:51:14 +0000 (14:51 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 8 Nov 2010 14:51:14 +0000 (14:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@22633 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/lapack_full_matrix.cc

index a8ed9c210d0f9d088e3f1664ca17fc7d0947bd03..b38af74153b10b71dc0d176d07cb3a87c40d50d4 100644 (file)
@@ -261,7 +261,7 @@ LAPACKFullMatrix<number>::compute_svd()
        &work[0], &lwork, &ipiv[0], &info);
   Assert (info==0, LAPACKSupport::ExcErrorCode("gesdd", info));
                                   // Now resize work array and
-  lwork = work[0] + .5;
+  lwork = static_cast<int>(work[0] + .5);
 #else
   int lwork = 3*std::min(mm,nn) +
              std::max(std::max(mm,nn),4*std::min(mm,nn)*std::min(mm,nn)+4*std::min(mm,nn));

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.