MED::TInt aNbGauss = aTimeStampInfo->GetNbGauss();
MED::TInt aNbComp = theField->myNbComp;
+ bool anIsTrimmed = theField->myIsTrimmed;
const MED::TGeom& anEntityTGeom = theMeshOnEntity->myGeom;
MED::TGeom::const_iterator aTGeomIter = anEntityTGeom.begin();
for(; aTGeomIter != anEntityTGeom.end(); aTGeomIter++){
const MED::EGeometrieElement& aGeom = aTGeomIter->first;
const MED::TInt& aNbElem = aTGeomIter->second;
- INITMSG(MYDEBUG,"LoadField - aGeom = "<<aGeom<<"; aNbElem = '"<<aNbElem<<endl);
+ INITMSG(MYDEBUG,"LoadField - aGeom = "<<aGeom<<"; aNbElem = "<<aNbElem<<endl);
if(aTGeom.find(aGeom) == aTGeom.end()){
- theField->myDataSize -= aNbElem*theField->myNbComp;
- theField->myIsTrimmed = true;
+ if(!theField->myIsTrimmed){
+ theField->myDataSize -= aNbElem*theField->myNbComp;
+ anIsTrimmed = true;
+ }
}else{
int aVTKGeomType = MEDGeomToVTK(aGeom);
VISU::TValForTimeImpl::TValForCellsWithType& anArray = theValForTime->myValForCells[aVTKGeomType];
}
}
}
+ theField->myIsTrimmed = anIsTrimmed;
return 1;
}