Salome HOME
#19896 [CEA] GHS3DPlugin_Hypothesis' object has no attribute 'SetPrintLogInFile'
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / GHS3DPlugin_GHS3D.cxx
index f83603b7afb8b3e8427721e8984989c73e904272..64825c0501f0fe4b4cb0ce43506cd8510ad0f71f 100644 (file)
@@ -1719,17 +1719,18 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh&         theMesh,
   Ok = aIdsFile.rdbuf()->is_open();
   if (!Ok) {
     INFOS( "Can't write into " << aSmdsToGhs3dIdMapFileName);
-    return error(SMESH_Comment("Can't write into ") << aSmdsToGhs3dIdMapFileName);
+    //return error(SMESH_Comment("Can't write into ") << aSmdsToGhs3dIdMapFileName);
   }
-  INFOS( "Writing ids relation into " << aSmdsToGhs3dIdMapFileName);
-  aIdsFile << "Smds MG-Tetra" << std::endl;
-  map <int,int>::const_iterator myit;
-  for (myit=aSmdsToGhs3dIdMap.begin() ; myit != aSmdsToGhs3dIdMap.end() ; ++myit) {
-    aIdsFile << myit->first << " " << myit->second << std::endl;
+  else
+  {
+    INFOS( "Writing ids relation into " << aSmdsToGhs3dIdMapFileName);
+    aIdsFile << "Smds MG-Tetra" << std::endl;
+    map <int,int>::const_iterator myit;
+    for (myit=aSmdsToGhs3dIdMap.begin() ; myit != aSmdsToGhs3dIdMap.end() ; ++myit) {
+      aIdsFile << myit->first << " " << myit->second << std::endl;
+    }
   }
-
   aIdsFile.close();
-
   if ( ! Ok ) {
     if ( !_keepFiles ) {
       removeFile( aGMFFileName );