From e6d2fdbc0e2aed9c2232db8ea396f75a01cfd297 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 24 Jul 2013 12:31:22 +0000 Subject: [PATCH] Target MEDReader --- src/MEDCoupling/MEDCouplingStructuredMesh.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.30.2