]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
#16748 EDF 19207 - no change priority with submesh
authoreap <eap@opencascade.com>
Thu, 28 Mar 2019 13:18:54 +0000 (16:18 +0300)
committereap <eap@opencascade.com>
Thu, 28 Mar 2019 13:18:54 +0000 (16:18 +0300)
src/SMESH_I/SMESH_Mesh_i.cxx

index 0a36c5b07198ba0a4c9034c069196df4ea0875a2..0b4d0937bbb145a5b7977fbd1016f7f154cc1e10 100644 (file)
@@ -6427,11 +6427,15 @@ TListOfListOfInt SMESH_Mesh_i::findConcurrentSubMeshes()
     aPythonDump << " ]";
     subMeshOrder.push_back( subMeshIds );
 
-    // clear collected submeshes
+    // clear collected sub-meshes
     set<const SMESH_subMesh*>::iterator clrIt = subMeshToClear.begin();
     for ( ; clrIt != subMeshToClear.end(); clrIt++ )
       if ( SMESH_subMesh* sm = (SMESH_subMesh*)*clrIt )
+      {
         sm->ComputeStateEngine( SMESH_subMesh::CLEAN );
+        if ( SMESH_Algo* algo = sm->GetAlgo() ) // #16748
+          sm->AlgoStateEngine( SMESH_subMesh::MODIF_HYP, algo ); // to clear a cached algo
+      }
   }
   aPythonDump << " ])";