From a2c9593753df03c3ec9a2fe4c02cfb5549be554d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth 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