]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
21775 : [CEA 2059] Errors in python API of SetEnforcedMesh in GHS3DPluginDC.py
authorgdd <gdd>
Mon, 6 Aug 2012 08:41:56 +0000 (08:41 +0000)
committergdd <gdd>
Mon, 6 Aug 2012 08:41:56 +0000 (08:41 +0000)
Fix bad test on size (inverted).

src/GHS3DPlugin/GHS3DPluginDC.py

index e4c034682a9bca06a8af2686ab8f228b84056393..74d5c2c1f9ae8955c32789861d890fb6c5431a0f 100644 (file)
@@ -169,7 +169,7 @@ class GHS3D_Algorithm(Mesh_Algorithm):
     #  @param size         : size of elements around enforced elements. Unused if -1.
     #  @param groupName    : group in which enforced elements will be added. Unused if "".
     def SetEnforcedMesh(self, theSource, elementType, size = -1, groupName = ""):
-        if size >= 0:
+        if size < 0:
             if groupName != "":
                 return self.Parameters().SetEnforcedMesh(theSource, elementType)
             else: