]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on [Bug PAL8053] REGRESSION: it is impossible to import ".../KERNEL/examples...
authorapo <apo@opencascade.com>
Mon, 7 Feb 2005 11:53:05 +0000 (11:53 +0000)
committerapo <apo@opencascade.com>
Mon, 7 Feb 2005 11:53:05 +0000 (11:53 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx

index 395bb92c8295313f4e0f80ac0e229483f95d810e..3eabe0885cd13cc8c6997841039f5898b16e972a 100644 (file)
@@ -387,9 +387,17 @@ VISU_Convertor* VISU_MedConvertor::Build()  {
        MED::TInt aNbComp = aFieldInfo->GetNbComp();
        std::string aFieldName = aFieldInfo->GetName();
        
+       MED::TErr anErr;
        MED::TGeom aTGeom;
        MED::EEntiteMaillage aMEntity;
-       MED::TInt aNbTimeStamps = aMed->GetNbTimeStamps(aFieldInfo,aEntityInfo,aMEntity,aTGeom);
+       MED::TInt aNbTimeStamps = aMed->GetNbTimeStamps(aFieldInfo,
+                                                       aEntityInfo,
+                                                       aMEntity,
+                                                       aTGeom,
+                                                       &anErr);
+       if(anErr < 0)
+         continue;
+
        VISU::TEntity aVEntity = MEDEntityToVTK(aMEntity);
        VISU::PMeshOnEntity aMeshOnEntity = aMesh->myMeshOnEntityMap[aVEntity];
        VISU::TFieldMap& aFieldMap = aMeshOnEntity->myFieldMap;
@@ -415,7 +423,6 @@ VISU_Convertor* VISU_MedConvertor::Build()  {
        }
        
        for(MED::TInt iTimeStamp = 1; iTimeStamp <= aNbTimeStamps; iTimeStamp++){
-         MED::TErr anErr;
          MED::PTimeStampInfo aTimeStamp = aMed->GetPTimeStampInfo(aFieldInfo,
                                                                   aMEntity,
                                                                   aTGeom,
@@ -441,6 +448,7 @@ VISU_Convertor* VISU_MedConvertor::Build()  {
       }
     }catch (std::exception& exc){
       MSG(MYDEBUG,"Follow exception was occured :\n"<<exc.what());
+      throw;
     }catch(...){
       EXCEPTION(runtime_error,"Unknown exception !!!");
     }