From: eap Date: Wed, 14 Nov 2012 12:40:47 +0000 (+0000) Subject: 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes X-Git-Tag: V6_6_0rc1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e1524c66bc682fef5507dda69b9af842859adcd1;p=modules%2Fsmesh.git 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes Avoid dump failure if create a sub-mesh on the main shape extracted from it-self def Assign(self, algo, mesh, geom): ... - if not geom: + if not geom or geom.IsSame( mesh.geom ): self.geom = mesh.geom --- diff --git a/src/SMESH_SWIG/smesh_algorithm.py b/src/SMESH_SWIG/smesh_algorithm.py index a037dd868..9b3acf00d 100644 --- a/src/SMESH_SWIG/smesh_algorithm.py +++ b/src/SMESH_SWIG/smesh_algorithm.py @@ -195,7 +195,7 @@ class Mesh_Algorithm: raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape" self.mesh = mesh name = "" - if not geom: + if not geom or geom.IsSame( mesh.geom ): self.geom = mesh.geom else: self.geom = geom