From 74301bd90fdeefc8018560e77562cd4f79d6d2d9 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Wed, 17 Apr 2024 15:39:42 +0200 Subject: [PATCH] Always print MG-Tetra start, cmd and end messages in terminal even without having to set SALOME_VERBOSE since it is useful info for user --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 36 +++++++++++------------ src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx | 18 ++++++------ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index b7245f0..618c4d7 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -1786,9 +1786,9 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, cmd += TCollection_AsciiString(" 1>" ) + aLogFileName; // dump into file } - INFOS("") - INFOS("MG-Tetra execution...") - INFOS(cmd) + std::cout << std::endl; + std::cout << "MG-Tetra execution..." << std::endl; + std::cout << cmd << std::endl; _computeCanceled = false; @@ -1796,14 +1796,14 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, Ok = mgTetra.Compute( cmd.ToCString(), errStr ); // run if ( _logInStandardOutput && mgTetra.IsLibrary() ) { - INFOS(""); - INFOS(mgTetra.GetLog()); - INFOS("") + std::cout << std::endl; + std::cout << mgTetra.GetLog() << std::endl; + std::cout << std::endl; } if ( Ok ) { - INFOS(""); - INFOS("End of MG-Tetra execution !"); - INFOS("") + std::cout << std::endl; + std::cout << "End of MG-Tetra execution !" << std::endl; + std::cout << std::endl; } // change results files permissions to user only @@ -2025,9 +2025,9 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, cmd += TCollection_AsciiString(" 1>" ) + aLogFileName; // dump into file } - INFOS("") - INFOS("MG-Tetra execution...") - INFOS(cmd) + std::cout << std::endl; + std::cout << "MG-Tetra execution..." << std::endl; + std::cout << cmd << std::endl; _computeCanceled = false; @@ -2035,14 +2035,14 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh& theMesh, Ok = mgTetra.Compute( cmd.ToCString(), errStr ); // run if ( _logInStandardOutput && mgTetra.IsLibrary() ) { - INFOS(""); - INFOS(mgTetra.GetLog()); - INFOS("") + std::cout << std::endl; + std::cout << mgTetra.GetLog() << std::endl; + std::cout << std::endl; } if ( Ok ) { - INFOS(""); - INFOS("End of MG-Tetra execution !"); - INFOS("") + std::cout << std::endl; + std::cout << "End of MG-Tetra execution !" << std::endl; + std::cout << std::endl; } // -------------- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx b/src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx index 6cedcb6..3446c3b 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx @@ -428,9 +428,9 @@ bool GHS3DPlugin_Optimizer::Compute(SMESH_Mesh& theMesh, cmd += " 1>" + aLogFileName; // dump into file } - INFOS("") - INFOS("MG-Tetra execution...") - INFOS(cmd) + std::cout << std::endl; + std::cout << "MG-Tetra execution..." << std::endl; + std::cout << cmd << std::endl; _computeCanceled = false; @@ -438,14 +438,14 @@ bool GHS3DPlugin_Optimizer::Compute(SMESH_Mesh& theMesh, Ok = mgTetra.Compute( cmd, errStr ); // run if ( logInStandardOutput && mgTetra.IsLibrary() ) { - INFOS(""); - INFOS(mgTetra.GetLog()); - INFOS("") + std::cout << std::endl; + std::cout << mgTetra.GetLog() << std::endl; + std::cout << std::endl; } if ( Ok ) { - INFOS(""); - INFOS("End of MG-Tetra execution !"); - INFOS("") + std::cout << std::endl; + std::cout << "End of MG-Tetra execution !" << std::endl; + std::cout << std::endl; } -- 2.39.2