From 7c6c888d437c3981887248f8cb4df1f6e742c30b Mon Sep 17 00:00:00 2001 From: gdd Date: Mon, 6 Aug 2012 08:41:56 +0000 Subject: [PATCH] 21775 : [CEA 2059] Errors in python API of SetEnforcedMesh in GHS3DPluginDC.py Fix bad test on size (inverted). --- src/GHS3DPlugin/GHS3DPluginDC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2