Salome HOME
#19896 [CEA] GHS3DPlugin_Hypothesis' object has no attribute 'SetPrintLogInFile'
authoreap <eap@opencascade.com>
Mon, 10 Aug 2020 07:55:23 +0000 (10:55 +0300)
committereap <eap@opencascade.com>
Mon, 10 Aug 2020 07:55:23 +0000 (10:55 +0300)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.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 );
index 48f901f3e8fcc8cb321c7b955043d090104ffbae..6a1431f5701091bf9645d1162a53a751eda48da6 100644 (file)
@@ -765,7 +765,7 @@ void GHS3DPlugin_Hypothesis_i::SetStandardOutputLog(CORBA::Boolean logInStandard
 {
   ASSERT(myBaseImpl);
   this->GetImpl()->SetStandardOutputLog(logInStandardOutput);
-  SMESH::TPythonDump() << _this() << ".SetPrintLogInFile( " << !logInStandardOutput << " )";
+  SMESH::TPythonDump() << _this() << ".SetStandardOutputLog( " << !logInStandardOutput << " )";
 }
 
 //=======================================================================