From e1524c66bc682fef5507dda69b9af842859adcd1 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Nov 2012 12:40:47 +0000 Subject: [PATCH] 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 --- src/SMESH_SWIG/smesh_algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2