]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
correct bug of empty fields
authorgeay <anthony.geay@cea.fr>
Wed, 5 Mar 2014 11:48:44 +0000 (12:48 +0100)
committergeay <anthony.geay@cea.fr>
Wed, 5 Mar 2014 11:48:44 +0000 (12:48 +0100)
src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx

index 089d54ab28d0a71d96b3e44473dcc21f05a7bbe0..b79c83c40fce3559265559495ca75a06bcf7038b 100644 (file)
@@ -1069,6 +1069,7 @@ void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileNam
     {
       AppendFieldFromMeshes(_ms,_fields);
     }
+  _fields->removeFieldsWithoutAnyTimeStep();
   std::vector<std::string> meshNames(_ms->getMeshesNames());
   std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileFields> > fields_per_mesh(meshNames.size());
   for(std::size_t i=0;i<meshNames.size();i++)