Salome HOME
Bug fix: bounding box for quadratic elements spaceDim=2/meshDim=1 (i.e. SEG3)
[tools/medcoupling.git] / src / INTERP_KERNEL / InterpolationOptions.cxx
index 43d2e4222f424f56a9ddb72c8f93f0aa5c074c34..ebd37d1a1d533d4b06a2c4faa4bd55e7e9f2cec2 100644 (file)
@@ -286,19 +286,18 @@ std::string INTERP_KERNEL::InterpolationOptions::printOptions() const
   return oss.str();
 }
 
-void INTERP_KERNEL::InterpolationOptions::CheckAndSplitInterpolationMethod(const char *method, std::string& srcMeth, std::string& trgMeth)
+void INTERP_KERNEL::InterpolationOptions::CheckAndSplitInterpolationMethod(const std::string& method, std::string& srcMeth, std::string& trgMeth)
 {
   const int NB_OF_METH_MANAGED=4;
   const char *METH_MANAGED[NB_OF_METH_MANAGED]={"P0P0","P0P1","P1P0","P1P1"};
-  std::string methodC(method);
   bool found=false;
   for(int i=0;i<NB_OF_METH_MANAGED && !found;i++)
-    found=(methodC==METH_MANAGED[i]);
+    found=(method==METH_MANAGED[i]);
   if(!found)
     {
       std::string msg("The interpolation method : \'"); msg+=method; msg+="\' not managed by INTERP_KERNEL interpolators ! Supported are \"P0P0\", \"P0P1\", \"P1P0\" and \"P1P1\".";
       throw INTERP_KERNEL::Exception(msg.c_str());
     }
-  srcMeth=methodC.substr(0,2);
-  trgMeth=methodC.substr(2);
+  srcMeth=method.substr(0,2);
+  trgMeth=method.substr(2);
 }