Salome HOME
Do not set the mesh in error if there is no log file as requested
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / GHS3DPlugin_Optimizer.cxx
index 3446c3bfef511795c5a9775e302778baa7af4eb3..3c7fd2cd9711c447517bebedf2ba34521c35b42c 100644 (file)
@@ -471,7 +471,7 @@ bool GHS3DPlugin_Optimizer::Compute(SMESH_Mesh&         theMesh,
                                                      mgTetra.GetLog(), conv, Ok ));
     }
   }
-  else {
+  else if (!logInStandardOutput) {
     // the log file is empty
     removeFile( aLogFileName );
     INFOS( "MG-Tetra Error, " << errStr);