]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix many missing std:: which Compaq's cxx wants to have, mostly for two reasons:...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 Jul 2001 16:48:12 +0000 (16:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 Jul 2001 16:48:12 +0000 (16:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@4796 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index bf104eb10aabe10a12ae1c164a7bc5a485656141..ca905bcf16950787e7e0640c0a03daadd47eee38 100644 (file)
@@ -1102,7 +1102,7 @@ VectorTools::integrate_difference (const Mapping<dim>    &mapping,
                                                 fe_values.get_JxW_values().begin(),
                                                 0.0);
                      if (norm == L2_norm)
-                       diff=sqrt(diff);
+                       diff=std::sqrt(diff);
                      break;
                case L1_norm:
                      if (weight != 0)
@@ -1128,11 +1128,11 @@ VectorTools::integrate_difference (const Mapping<dim>    &mapping,
                          psi_scalar[q] = psi_values[q].l1_norm();                    
 
                                                       // Integration on one cell
-                     diff = inner_product (psi_scalar.begin(), psi_scalar.end(),
-                                           fe_values.get_JxW_values().begin(),
-                                           0.0);
+                     diff = std::inner_product (psi_scalar.begin(), psi_scalar.end(),
+                                                fe_values.get_JxW_values().begin(),
+                                                0.0);
                      if (norm == L2_norm)
-                       diff=sqrt(diff);
+                       diff=std::sqrt(diff);
                      break;
                case Linfty_norm:
                      if (weight != 0)
@@ -1239,7 +1239,7 @@ VectorTools::integrate_difference (const Mapping<dim>    &mapping,
            diff += std::inner_product (psi_scalar.begin(), psi_scalar.end(),
                                        fe_values.get_JxW_values().begin(),
                                        0.0);
-           diff = sqrt(diff);
+           diff = std::sqrt(diff);
 
            break;
          };

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.