Skip to content
Snippets Groups Projects
Commit 907eb85b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't force terminal output if running as client

parent 45b9a300
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,10 @@ int main(int argc, char *argv[])
new GModel();
GmshInitialize(argc, argv);
CTX::instance()->terminal = CTX::instance()->noPopup = 1;
if(!Msg::GetClient())
CTX::instance()->terminal = CTX::instance()->noPopup = 1;
GmshBatch();
GmshFinalize();
......
......@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
// Non-interactive Gmsh
if(CTX::instance()->batch) {
CTX::instance()->terminal = 1;
if(!Msg::GetClient()) CTX::instance()->terminal = 1;
GmshBatch();
GmshFinalize();
Msg::Exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment