From 0f67eab7240c9e5816bd5c331bfa687319ee130a 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.39.2