]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug fixing - Data should be applied only for correctly loaded Gauss Points
authorapo <apo@opencascade.com>
Mon, 1 Aug 2005 06:52:40 +0000 (06:52 +0000)
committerapo <apo@opencascade.com>
Mon, 1 Aug 2005 06:52:40 +0000 (06:52 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index 2601aa61fde5322a0e741429a5330f43f6bbe684..ae2be549f84b7ef0ee224b2505431ea1601d8cab 100644 (file)
@@ -950,11 +950,21 @@ namespace
     aFloatArray->SetName(aFieldName.c_str());
     
     TGeom2Value& aGeom2Value = theValForTime->myGeom2Value;
-    TGeom2Value::const_iterator anIter = aGeom2Value.begin();
-    for(int aTupleId = 0; anIter != aGeom2Value.end(); anIter++){
-      const TMeshValue& aMeshValue = anIter->second;
-      int aGeom = anIter->first;
 
+    PGaussMeshImpl aGaussMesh = theValForTime->myGaussMesh;
+    const TGeom2GaussSubMesh& aGeom2GaussSubMesh = aGaussMesh->myGeom2GaussSubMesh;
+    TGeom2GaussSubMesh::const_iterator anIter = aGeom2GaussSubMesh.begin();
+    for(int aTupleId = 0; anIter != aGeom2GaussSubMesh.end(); anIter++){
+      vtkIdType aGeom = anIter->first;
+      PGaussSubMeshImpl aGaussSubMesh = anIter->second;
+      if(!aGaussSubMesh->myIsDone)
+       continue;
+      
+      TGeom2Value::const_iterator anIter2 = aGeom2Value.find(aGeom);
+      if(anIter2 == aGeom2Value.end())
+       EXCEPTION(runtime_error,"GetTimeStampOnGaussMesh >> Can't find values for corresponding Gauss Points SubMesh");
+       
+      const TMeshValue& aMeshValue = anIter2->second;
       int aNbElem = aMeshValue.myNbElem;
       int aNbGauss = aMeshValue.myNbGauss;
       int aNbComp = aMeshValue.myNbComp;