Salome HOME
0022216: EDF 2613 SMESH: Projection 1D with multi-dimensional algo (Netgen 1D-2D...
authoreap <eap@opencascade.com>
Mon, 27 May 2013 13:59:56 +0000 (13:59 +0000)
committereap <eap@opencascade.com>
Mon, 27 May 2013 13:59:56 +0000 (13:59 +0000)
Fix checkConformIgnoredAlgos() to prevent warning on hiding a local
algo by a local all-dimensional algo of upper dim.

src/SMESH/SMESH_Gen.cxx

index c5acd7f67b6365129fd191bf7a6aa163c95696d7..fa720985a628456aa85823ac0e988fdddda7a372 100644 (file)
@@ -627,7 +627,9 @@ static bool checkConformIgnoredAlgos(SMESH_Mesh&               aMesh,
           theErrors.back().Set( SMESH_Hypothesis::HYP_NOTCONFORM, algo, false );
         }
 
           theErrors.back().Set( SMESH_Hypothesis::HYP_NOTCONFORM, algo, false );
         }
 
-        // sub-algos will be hidden by a local <algo>
+        // sub-algos will be hidden by a local <algo> if <algo> does not support sub-meshes
+        if ( algo->SupportSubmeshes() )
+          algo = 0;
         SMESH_subMeshIteratorPtr revItSub =
           aSubMesh->getDependsOnIterator( /*includeSelf=*/false, /*complexShapeFirst=*/true);
         bool checkConform2 = false;
         SMESH_subMeshIteratorPtr revItSub =
           aSubMesh->getDependsOnIterator( /*includeSelf=*/false, /*complexShapeFirst=*/true);
         bool checkConform2 = false;