]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix missing std::
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Dec 2002 22:09:31 +0000 (22:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Dec 2002 22:09:31 +0000 (22:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@6856 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_gmres.h

index 59ead308cf2e91dcc7d50cf7d0f0c5f28744d3c6..4ebb99358aff13a9ff9223b877faad4600c8b2c2 100644 (file)
@@ -22,7 +22,9 @@
 #include <lac/solver.h>
 #include <lac/solver_control.h>
 #include <lac/full_matrix.h>
+
 #include <vector>
+#include <cmath>
 
 
 /**
@@ -322,7 +324,7 @@ SolverGMRES<VECTOR>::givens_rotation (Vector<double> &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);
        };

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.