From e47878d257536a42eb10aadda0abb63efa4ef7d8 Mon Sep 17 00:00:00 2001 From: geay Date: Wed, 5 Mar 2014 12:48:44 +0100 Subject: [PATCH] correct bug of empty fields --- src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx index 089d54ab..b79c83c4 100644 --- a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx @@ -1069,6 +1069,7 @@ void MEDFileFieldRepresentationTree::loadMainStructureOfFile(const char *fileNam { AppendFieldFromMeshes(_ms,_fields); } + _fields->removeFieldsWithoutAnyTimeStep(); std::vector meshNames(_ms->getMeshesNames()); std::vector< MEDCouplingAutoRefCountObjectPtr > fields_per_mesh(meshNames.size()); for(std::size_t i=0;i