From e3b622c36dda9339fc9daf910803d721dec09fbc Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 10 Aug 2020 10:55:23 +0300 Subject: [PATCH] #19896 [CEA] GHS3DPlugin_Hypothesis' object has no attribute 'SetPrintLogInFile' --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 17 +++++++++-------- src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) 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 << " )"; } //======================================================================= -- 2.39.2