From: gdd Date: Mon, 6 Aug 2012 08:41:56 +0000 (+0000) Subject: 21775 : [CEA 2059] Errors in python API of SetEnforcedMesh in GHS3DPluginDC.py X-Git-Tag: V6_6_0a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c6c888d437c3981887248f8cb4df1f6e742c30b;p=plugins%2Fhybridplugin.git 21775 : [CEA 2059] Errors in python API of SetEnforcedMesh in GHS3DPluginDC.py Fix bad test on size (inverted). --- diff --git a/src/GHS3DPlugin/GHS3DPluginDC.py b/src/GHS3DPlugin/GHS3DPluginDC.py index e4c0346..74d5c2c 100644 --- a/src/GHS3DPlugin/GHS3DPluginDC.py +++ b/src/GHS3DPlugin/GHS3DPluginDC.py @@ -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: