]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL18863 One field can't be displayed.
authordmv <dmv@opencascade.com>
Wed, 5 Mar 2008 09:56:42 +0000 (09:56 +0000)
committerdmv <dmv@opencascade.com>
Wed, 5 Mar 2008 09:56:42 +0000 (09:56 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx
src/VISUGUI/VisuGUI_Prs3dTools.h

index ddccb73a9d92beb373a5668c9e00c64507676cb0..af5dd6cabe66a8e1f0d7d43a41342477b2d1b69c 100644 (file)
@@ -405,7 +405,9 @@ static int MY_GROUP_DEBUG = 0;
          aGauss->myGaussInfo = aGaussInfo;
          aGauss->myName = aGaussInfo->GetName();
          aGauss->myNbPoints = aGaussInfo->GetNbGauss();
-       }
+       } else if ( aTimeStampInfo.GetNbGauss(aMGeom) > 1 )
+         EXCEPTION( runtime_error, "aGaussIter == aGeom2Gauss.end()"
+                    " && aTimeStampInfo.GetNbGauss(aMGeom) > 1 !!!" );
        
        aGaussSubMesh->myNbCells = aNbCells*aGauss->myNbPoints;
        aGaussSubMesh->myCellsSize = aGaussSubMesh->myNbCells*2;
@@ -481,35 +483,6 @@ static int MY_GROUP_DEBUG = 0;
   }
 
 
-  //---------------------------------------------------------------
-  void
-  InitGaussProfile(const MED::PWrapper& theMEDWrapper,
-                  const MED::PMeshInfo& theMeshInfo,
-                  MED::TTimeStampVal& theTimeStampVal,
-                  VISU::TMEDMeshOnEntity& theMeshOnEntity,
-                  MED::EEntiteMaillage theMEntity,
-                  const MED::TGeom2Size& theGeom2Size,
-                  VISU::TMEDValForTime& theValForTime)
-  {
-    TTimerLog aTimerLog(MYDEBUG,"InitGaussProfile");
-    INITMSG(MYDEBUG,"InitGaussProfile"<<endl);
-
-    // The order of the function calls is important
-    InitProfile(theMEDWrapper,
-               theMeshInfo,
-               theTimeStampVal,
-               theMeshOnEntity,
-               theMEntity,
-               theGeom2Size,
-               theValForTime);
-
-    InitGaussMesh(theTimeStampVal,
-                 theMeshOnEntity,
-                 theGeom2Size,
-                 theValForTime);
-  }
-
-
   //---------------------------------------------------------------
   void
   BuildMeshOnEntityMap(PMEDMesh theMesh,
@@ -2717,14 +2690,14 @@ LoadValForTime(const MED::PWrapper& theMed,
     theMed->GetPTimeStampVal(aTimeStampInfo,
                             aMKey2Profile,
                             aKey2Gauss);
-
-  InitGaussProfile(theMed,
-                  aMeshInfo,
-                  aTimeStampVal,
-                  theMeshOnEntity,
-                  aMEntity,
-                  aGeom2Size,
-                  theValForTime);
+  
+  InitProfile(theMed,
+             aMeshInfo,
+             aTimeStampVal,
+             theMeshOnEntity,
+             aMEntity,
+             aGeom2Size,
+             theValForTime);
 
   LoadProfile(theMed,
              theMesh,
@@ -2732,13 +2705,19 @@ LoadValForTime(const MED::PWrapper& theMed,
              theValForTime,
              theMeshOnEntity);
   
-  if(theIsGauss)
+  if ( theIsGauss ) {
+    InitGaussMesh(aTimeStampVal,
+                 theMeshOnEntity,
+                 aGeom2Size,
+                 theValForTime);
+
     LoadGaussMesh(theMed,
                  theMesh,
                  aTimeStampVal,
                  theValForTime,
                  theMeshOnEntity);
-  
+  }  
+
   PMEDProfile aProfile = theValForTime->myProfile;
   TGeom2SubProfile& aGeom2SubProfile = aProfile->myGeom2SubProfile;
 
index 61180fb1f21eff93277c73716a98d3c026ccb423..e30d3c8a4dd8b8fc44c1450fa81dca569c710db5 100644 (file)
@@ -128,7 +128,8 @@ namespace VISU
          GetVisuGen(theModule)->template CreatePrs3d<TPrs3d_i>
          (aResult,theMeshName,theEntity,theFieldName,theTimeId);
        QApplication::restoreOverrideCursor();
-       return aPrs3d;
+       if (aPrs3d)
+         return aPrs3d;
       }
       SUIT_MessageBox::warn1(GetDesktop(theModule),
                             QObject::tr("WRN_VISU"),