From c38d02f73b40c942be7530eafcf4475216f42b87 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 3 Jul 2014 16:45:42 +0000 Subject: [PATCH] use tolerance --- Plugin/FieldFromAmplitudePhase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin/FieldFromAmplitudePhase.cpp b/Plugin/FieldFromAmplitudePhase.cpp index a332e11cb6..2cfc266c44 100644 --- a/Plugin/FieldFromAmplitudePhase.cpp +++ b/Plugin/FieldFromAmplitudePhase.cpp @@ -122,9 +122,9 @@ PView *GMSH_FieldFromAmplitudePhasePlugin::execute(PView *v) double phi, ar, ai ; std::vector<double> uR(1) ; std::vector<double> uI(1) ; - oPhi->searchScalar((*it)->x(), (*it)->y(), (*it)->z(), &phi, 0); - oA->searchScalar((*it)->x(), (*it)->y(), (*it)->z(), &ar, 0); - oA->searchScalar((*it)->x(), (*it)->y(), (*it)->z(), &ai, 1); + oPhi->searchScalarWithTol((*it)->x(), (*it)->y(), (*it)->z(), &phi, 0); + oA->searchScalarWithTol((*it)->x(), (*it)->y(), (*it)->z(), &ar, 0); + oA->searchScalarWithTol((*it)->x(), (*it)->y(), (*it)->z(), &ai, 1); uR[0] = ar * cos(k*phi) - ai * sin(k*phi) ; uI[0] = ar * sin(k*phi) + ai* cos(k*phi) ; -- GitLab