From: geay Date: Wed, 30 Apr 2014 14:56:17 +0000 (+0200) Subject: Windows compilation. X-Git-Tag: V7_4_0rc1~2^2~3^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c61902d7b9c2d9a1d428937c1d5fa9ef58977e83;p=tools%2Fmedcoupling.git Windows compilation. --- diff --git a/src/MEDCoupling/MEDCouplingIMesh.cxx b/src/MEDCoupling/MEDCouplingIMesh.cxx index aecd3b313..16dc17763 100644 --- a/src/MEDCoupling/MEDCouplingIMesh.cxx +++ b/src/MEDCoupling/MEDCouplingIMesh.cxx @@ -27,7 +27,6 @@ #include #include #include -#include using namespace ParaMEDMEM; @@ -834,9 +833,12 @@ int MEDCouplingIMesh::FindIntRoot(int val, int order) else//order==3 { double retf(std::pow(val,0.3333333333333333)); - int ret((int)round(retf)); - if(ret*ret*ret!=val) + int ret((int)retf),ret2(ret+1); + if(ret*ret*ret!=val || ret2*ret2*ret2!=val) throw INTERP_KERNEL::Exception("MEDCouplingIMesh::FindIntRoot : the input val is not a perfect cublic root !"); - return ret; + if(ret*ret*ret==val) + return ret; + else + return ret2; } }