From: eap Date: Mon, 10 Aug 2020 07:55:23 +0000 (+0300) Subject: #19896 [CEA] GHS3DPlugin_Hypothesis' object has no attribute 'SetPrintLogInFile' X-Git-Tag: V9_6_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3b622c36dda9339fc9daf910803d721dec09fbc;p=plugins%2Fghs3dplugin.git #19896 [CEA] GHS3DPlugin_Hypothesis' object has no attribute 'SetPrintLogInFile' --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index f83603b..64825c0 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -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 ::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 ::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 ); diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx index 48f901f..6a1431f 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx @@ -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 << " )"; } //=======================================================================