Salome HOME
Deal with 1D/0D pointlocator into Remapper
[tools/medcoupling.git] / src / INTERP_KERNEL / IntersectorCU.txx
index 1d4d1451c2c11cc2fac64f90d95f2b28ae651240..de1a4cd48b25a4869f7707897199ed12a757638f 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2009-2012  OPEN CASCADE
+// Copyright (C) 2009-2019  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
@@ -60,8 +60,9 @@ namespace INTERP_KERNEL
 
     for ( int j = 0; j < SPACEDIM; ++j )
       {
-        _coordsC [ j ] = _meshC.getCoordsAlongAxis( _TMIC( j ));
-        _nbCellsC[ j ] = _meshC.nbCellsAlongAxis  ( _TMIC( j ));
+        int axis = static_cast<int>( _TMIC( j ));
+        _coordsC [ j ] = _meshC.getCoordsAlongAxis( axis );
+        _nbCellsC[ j ] = static_cast<CConnType>(_meshC.nbCellsAlongAxis( axis ));
       }
   }
 
@@ -123,14 +124,14 @@ namespace INTERP_KERNEL
   }
 
   _CU_TEMPLATE
-  int _INTERSECTOR_CU_::getNumberOfRowsOfResMatrix() const
+  typename MyCMeshType::MyConnType _INTERSECTOR_CU_::getNumberOfRowsOfResMatrix() const
   {
     return _meshU.getNumberOfElements();
   }
   _CU_TEMPLATE
-  int _INTERSECTOR_CU_::getNumberOfColsOfResMatrix() const
+  typename MyCMeshType::MyConnType _INTERSECTOR_CU_::getNumberOfColsOfResMatrix() const
   {
-    return _meshC.getNumberOfElements();
+    return static_cast<CConnType>(_meshC.getNumberOfElements());
   }
 
   //================================================================================