]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix Mesh_UseExistingElements.SourceEdges()
authoreap <eap@opencascade.com>
Thu, 6 Oct 2011 16:02:40 +0000 (16:02 +0000)
committereap <eap@opencascade.com>
Thu, 6 Oct 2011 16:02:40 +0000 (16:02 +0000)
src/SMESH_SWIG/smeshDC.py

index b02092b41722505f2f3a152093b574cd2d9e1eff..a11feb4d6213d6b3a8e4bf03deab09c42bd5085d 100644 (file)
@@ -6421,7 +6421,7 @@ class Mesh_UseExistingElements(Mesh_Algorithm):
     #  @param UseExisting if ==true - searches for the existing hypothesis created with
     #                     the same parameters, else (default) - creates a new one
     def SourceEdges(self, groups, toCopyMesh=False, toCopyGroups=False, UseExisting=False):
-        if self.algo.GetName() == "Import_2D":
+        if self.algo.GetName() != "Import_1D":
             raise ValueError, "algoritm dimension mismatch"
         for group in groups:
             AssureGeomPublished( self.mesh, group )