From 5469a251d89a8729b4a1217ab4132ddc822b13c5 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 2 Jul 2001 16:48:12 +0000 Subject: [PATCH] Fix many missing std:: which Compaq's cxx wants to have, mostly for two reasons: 1. because it does not inject the math functions sqrt, sin, cos, fabs, ... into global namespace when we write include. 2. because cxx can't do Koenig lookup of functions. git-svn-id: https://svn.dealii.org/trunk@4796 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/vectors.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/source/numerics/vectors.cc b/deal.II/deal.II/source/numerics/vectors.cc index bf104eb10a..ca905bcf16 100644 --- a/deal.II/deal.II/source/numerics/vectors.cc +++ b/deal.II/deal.II/source/numerics/vectors.cc @@ -1102,7 +1102,7 @@ VectorTools::integrate_difference (const Mapping &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 &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 &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; }; -- 2.39.5