Salome HOME
0020577: EDF 1164 SMESH: Bad dump of concatenate with create common groups
authoreap <eap@opencascade.com>
Thu, 5 Nov 2009 10:50:03 +0000 (10:50 +0000)
committereap <eap@opencascade.com>
Thu, 5 Nov 2009 10:50:03 +0000 (10:50 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index dbf4fe43e57251a6a08f29f2cfcfa26b58e04fd1..bf37a72a909679a0faa842d7333c07c3e87fae23 100644 (file)
@@ -1879,7 +1879,8 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
   typedef map< pair<string, SMESH::ElementType>, TListOfNewGroups > TGroupsMap;
   typedef std::set<SMESHDS_GroupBase*> TGroups;
 
-  TPythonDump aPythonDump; // prevent dump of called methods
+  TPythonDump* pPythonDump = new TPythonDump;
+  TPythonDump& aPythonDump = *pPythonDump; // prevent dump of called methods
 
   // create mesh
   SMESH::SMESH_Mesh_var aNewMesh = CreateEmptyMesh();
@@ -2147,6 +2148,13 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
               << theMergeNodesAndElements << ", "
               << theMergeTolerance << ")";
 
+  delete pPythonDump; // enable python dump from GetGroups()
+
+  // 0020577: EDF 1164 SMESH: Bad dump of concatenate with create common groups
+  if ( !aNewMesh->_is_nil() )
+  {
+    SMESH::ListOfGroups_var groups = aNewMesh->GetGroups();
+  }
   return aNewMesh._retn();
 }