Salome HOME
Some useful helpers into medcoupling python module
[tools/medcoupling.git] / src / INTERP_KERNEL / InterpolationCU.txx
index f9528e1857062d5e157a4e2e47fe87e1fe09aeaa..69d0c6ade1a1d1d2ffd7326928b3fd07b1575752 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2012  OPEN CASCADE
+// Copyright (C) 2009-2016  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -97,7 +97,6 @@ namespace INTERP_KERNEL
                                          MatrixType&        result,
                                          const char *       method)
   {
-    typedef typename MyUMeshType::MyConnType ConnType;
     typedef typename MyCMeshType::MyConnType CConnType;
 
     if ( std::string("P0P0") != method )
@@ -148,7 +147,7 @@ namespace INTERP_KERNEL
         bool doItersect = true;
         for ( int j = 0; j < dim && doItersect; ++j )
           doItersect =
-            bb[j*2]   < src_coords[j][ src_nb_coords[0]-1 ] - eps &&
+            bb[j*2]   < src_coords[j][ src_nb_coords[j]-1 ] - eps &&
             bb[j*2+1] > src_coords[j][0] + eps;
         if ( !doItersect )
           continue; // no intersection