From: geay Date: Wed, 30 Apr 2014 14:56:17 +0000 (+0200) Subject: Windows compilation. X-Git-Tag: V7_4_0rc1~10^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a1f3e0f645c4e3bc1728b80cb20164a0cfa60af;p=modules%2Fmed.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; } }