From e8548ea731de8b9707b1ba8046f4326f90545018 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 24 Nov 2014 11:37:06 +0100 Subject: [PATCH] Call zipCoords to reduce CPU and GPU memory in // mode. --- .../MEDReader/IO/MEDFileFieldRepresentationTree.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx index 8c14fccc..6cf1d803 100644 --- a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx @@ -1104,6 +1104,14 @@ void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileNam { #ifdef MEDREADER_USE_MPI _ms=ParaMEDFileMeshes::New(iPart,nbOfParts,fileName); + int nbMeshes(_ms->getNumberOfMeshes()); + for(int i=0;igetMeshAtPos(i)); + ParaMEDMEM::MEDFileUMesh *tmp2(dynamic_cast(tmp)); + if(tmp2) + MEDCouplingAutoRefCountObjectPtr tmp3(tmp2->zipCoords()); + } _fields=MEDFileFields::LoadPartOf(fileName,false,_ms);//false is important to not read the values #else std::ostringstream oss; oss << "MEDFileFieldRepresentationTree::loadMainStructureOfFile : request for iPart/nbOfParts=" << iPart << "/" << nbOfParts << " whereas Plugin not compiled with MPI !"; -- 2.39.2