From: Anthony Geay Date: Mon, 24 Nov 2014 10:37:06 +0000 (+0100) Subject: Call zipCoords to reduce CPU and GPU memory in // mode. X-Git-Tag: V7_5_1b1~7^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8548ea731de8b9707b1ba8046f4326f90545018;p=modules%2Fparavis.git Call zipCoords to reduce CPU and GPU memory in // mode. --- 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 !";