]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Call zipCoords to reduce CPU and GPU memory in // mode.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 24 Nov 2014 10:37:06 +0000 (11:37 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 24 Nov 2014 10:37:06 +0000 (11:37 +0100)
src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx

index 8c14fccc0f20aafecba412b076dc173304982b9b..6cf1d8034caae68beeeadd883a4de46d51dd91c9 100644 (file)
@@ -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;i<nbMeshes;i++)
+            {
+              ParaMEDMEM::MEDFileMesh *tmp(_ms->getMeshAtPos(i));
+              ParaMEDMEM::MEDFileUMesh *tmp2(dynamic_cast<ParaMEDMEM::MEDFileUMesh *>(tmp));
+              if(tmp2)
+                MEDCouplingAutoRefCountObjectPtr<DataArrayInt> 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 !";