]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
authoreap <eap@opencascade.com>
Wed, 10 Aug 2011 12:49:49 +0000 (12:49 +0000)
committereap <eap@opencascade.com>
Wed, 10 Aug 2011 12:49:49 +0000 (12:49 +0000)
  Fix ExportCGNS()

src/SMESH_SWIG/smeshDC.py

index 5dba9897fff30e2b6cb36b9e372f0d15814216c5..c63c2b825459c75f9fe35c7ec1ce2f25183e5eb6 100644 (file)
@@ -1760,6 +1760,8 @@ class Mesh:
     def ExportCGNS(self, f, overwrite=1, meshPart=None):
         if isinstance( meshPart, list ):
             meshPart = self.GetIDSource( meshPart, SMESH.ALL )
+        if isinstance( meshPart, Mesh ):
+            meshPart = meshPart.mesh
         elif not meshPart:
             meshPart = self.mesh
         self.mesh.ExportCGNS(meshPart, f, overwrite)