Salome HOME
Fix for 9857: provide warning if no nodes can be read from MED file
authorjfa <jfa@opencascade.com>
Thu, 13 Oct 2005 07:58:05 +0000 (07:58 +0000)
committerjfa <jfa@opencascade.com>
Thu, 13 Oct 2005 07:58:05 +0000 (07:58 +0000)
src/MEDWrapper/V2_1/MED_V2_1_Wrapper.cxx

index 04afa18fcd2e1437706d25b4360da4823a8cdc5b..03de341a987a803a34cf9acdd43d6b7c09257491 100644 (file)
@@ -336,7 +336,7 @@ namespace MED{
       INITMSG(MYDEBUG,"GetNodeInfo ... ");
       TFileWrapper aFileWrapper(myFile,eLECT,theErr);
       
-      if(theErr && *theErr < 0 || theInfo.myNbElem<=0)
+      if(theErr && *theErr < 0)
        return;
       
       MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;