From: Christophe Bourcier Date: Wed, 17 Apr 2024 13:39:42 +0000 (+0200) Subject: Always print MG-Tetra start, cmd and end messages in terminal X-Git-Tag: V9_13_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74301bd90fdeefc8018560e77562cd4f79d6d2d9;p=plugins%2Fghs3dplugin.git 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 --- 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; }