From: ageay Date: Wed, 24 Jul 2013 12:31:22 +0000 (+0000) Subject: Target MEDReader X-Git-Tag: B4PolyhIntersect~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f67eab7240c9e5816bd5c331bfa687319ee130a;p=modules%2Fmed.git Target MEDReader --- diff --git a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx index 7dbde2cb1..2da06d22b 100644 --- a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx +++ b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx @@ -522,6 +522,7 @@ bool MEDCouplingStructuredMesh::IsPartStructured(const int *startIds, const int return true; } GetPosFromId(startIds[sz-1],dim,&tmp2[0],&tmp3[0]); + int szExp(1); for(int i=0;i=st[i]) @@ -530,7 +531,10 @@ bool MEDCouplingStructuredMesh::IsPartStructured(const int *startIds, const int tmp4[i]=partCompactFormat[i].second-partCompactFormat[i].first; if(tmp4[i]<=0) return false; + szExp*=tmp4[i]; } + if(szExp!=(int)sz) + return false; const int *w(startIds); switch(dim) {