From 5a5b79b6b217e4dcb0ea93e4d38d2804e6163bc3 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 18 Dec 2002 22:09:31 +0000 Subject: [PATCH] Fix missing std:: git-svn-id: https://svn.dealii.org/trunk@6856 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/solver_gmres.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }; -- 2.39.5