]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Windows compilation.
authorgeay <anthony.geay@cea.fr>
Wed, 30 Apr 2014 14:33:36 +0000 (16:33 +0200)
committergeay <anthony.geay@cea.fr>
Wed, 30 Apr 2014 14:33:36 +0000 (16:33 +0200)
src/MEDCoupling/MEDCouplingIMesh.cxx

index 05e5875353daffd85717b511ac5a88ba34ea0ae8..aecd3b3138de27df80f436ce8d7f4e75f70cf400 100644 (file)
@@ -27,6 +27,7 @@
 #include <algorithm>
 #include <sstream>
 #include <numeric>
+#include <cmath>
 
 using namespace ParaMEDMEM;
 
@@ -164,7 +165,7 @@ MEDCouplingCMesh *MEDCouplingIMesh::convertToCartesian() const
   MEDCouplingAutoRefCountObjectPtr<MEDCouplingCMesh> ret(MEDCouplingCMesh::New());
   try
   { ret->copyTinyInfoFrom(this); }
-  catch(INTERP_KERNEL::Exception& e) { }
+  catch(INTERP_KERNEL::Exception& ) { }
   int spaceDim(getSpaceDimension());
   std::vector<std::string> infos(buildInfoOnComponents());
   for(int i=0;i<spaceDim;i++)
@@ -558,7 +559,7 @@ int MEDCouplingIMesh::getCellContainingPoint(const double *pos, double eps) cons
     {
       int nbOfCells(_structure[i]-1);
       double ref(pos[i]);
-      int tmp((ref-_origin[i])/_dxyz[i]);
+      int tmp((int)((ref-_origin[i])/_dxyz[i]));
       if(tmp>=0 && tmp<nbOfCells)
         {
           ret+=coeff*tmp;