From: wolf Date: Wed, 18 Dec 2002 22:09:31 +0000 (+0000) Subject: Fix missing std:: X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a5b79b6b217e4dcb0ea93e4d38d2804e6163bc3;p=dealii-svn.git Fix missing std:: git-svn-id: https://svn.dealii.org/trunk@6856 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/solver_gmres.h b/deal.II/lac/include/lac/solver_gmres.h index 59ead308cf..4ebb99358a 100644 --- a/deal.II/lac/include/lac/solver_gmres.h +++ b/deal.II/lac/include/lac/solver_gmres.h @@ -22,7 +22,9 @@ #include #include #include + #include +#include /** @@ -322,7 +324,7 @@ SolverGMRES::givens_rotation (Vector &h, h(i+1) = -s*dummy + c*h(i+1); }; - const double r = 1./sqrt(h(col)*h(col) + h(col+1)*h(col+1)); + const double r = 1./std::sqrt(h(col)*h(col) + h(col+1)*h(col+1)); si(col) = h(col+1) *r; ci(col) = h(col) *r; h(col) = ci(col)*h(col) + si(col)*h(col+1); @@ -486,7 +488,7 @@ unsigned int dim = 0; H(i,inner_iteration) = h(i); /* residual */ - rho = fabs(gamma(dim)); + rho = std::fabs(gamma(dim)); iteration_state = this->control().check (accumulated_iterations, rho); };