From: Anthony Geay Date: Tue, 24 Jan 2017 16:40:24 +0000 (+0100) Subject: OK structure elements are done X-Git-Tag: SHAPER_2.7.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2FEltStrInMC;p=modules%2Fparavis.git OK structure elements are done --- diff --git a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx index 540464ce..4e9abe86 100644 --- a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx @@ -25,6 +25,7 @@ #include "MEDCouplingFieldDiscretization.hxx" #include "MEDCouplingFieldDouble.hxx" #include "InterpKernelGaussCoords.hxx" +#include "MEDFileBlowStrEltUp.hxx" #include "MEDFileData.hxx" #include "SauvReader.hxx" @@ -1234,8 +1235,23 @@ void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileNam { if((iPart==-1 && nbOfParts==-1) || (iPart==0 && nbOfParts==1)) { + MCAuto msups(MEDFileMeshSupports::New(fileName)); + MCAuto mse(MEDFileStructureElements::New(fileName,msups)); ms=MEDFileMeshes::New(fileName); - fields=MEDFileFields::New(fileName,false);//false is important to not read the values + fields=MEDFileFields::NewWithDynGT(fileName,mse,false);//false is important to not read the values + if(ms->presenceOfStructureElements()) + {// pre traitement + fields->loadArrays(); + MEDFileBlowStrEltUp::DealWithSE(fields,ms,mse); + } + int nbMeshes(ms->getNumberOfMeshes()); + for(int i=0;igetMeshAtPos(i)); + MEDCoupling::MEDFileUMesh *tmp2(dynamic_cast(tmp)); + if(tmp2) + tmp2->forceComputationOfParts(); + } } else {