Salome HOME
Always print MG-Tetra start, cmd and end messages in terminal
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 17 Apr 2024 13:39:42 +0000 (15:39 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 17 Apr 2024 13:39:42 +0000 (15:39 +0200)
even without having to set SALOME_VERBOSE
since it is useful info for user

src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx
src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx

index b7245f0743fb5808eb543579aa491b07b0ac4235..618c4d7472d873358a22b22d7aa0a507d780b6df 100644 (file)
@@ -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;
   }
 
   // --------------
index 6cedcb6edcb35a45c96b5390e8dcc176b57b240a..3446c3bfef511795c5a9775e302778baa7af4eb3 100644 (file)
@@ -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;
   }