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

*** empty log message ***

parent 12d1a65a
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,7 @@ int main(int argc, char *argv[]) ...@@ -22,9 +22,7 @@ int main(int argc, char *argv[])
new GModel(); new GModel();
GmshInitialize(argc, argv); GmshInitialize(argc, argv);
// force these even if the options say it ain't so CTX.terminal = CTX.nopopup = 1;
CTX.nopopup = 1;
CTX.terminal = 1;
GmshBatch(); GmshBatch();
GmshFinalize(); GmshFinalize();
......
...@@ -40,11 +40,9 @@ int main(int argc, char *argv[]) ...@@ -40,11 +40,9 @@ int main(int argc, char *argv[])
// Initialize static stuff (parser symbols, options) // Initialize static stuff (parser symbols, options)
GmshInitialize(argc, argv); GmshInitialize(argc, argv);
// Always print info on terminal for non-interactive execution
if(CTX.batch) CTX.terminal = 1;
// Non-interactive Gmsh // Non-interactive Gmsh
if(CTX.batch) { if(CTX.batch) {
CTX.terminal = 1;
GmshBatch(); GmshBatch();
GmshFinalize(); GmshFinalize();
Msg::Exit(0); Msg::Exit(0);
...@@ -106,7 +104,7 @@ int main(int argc, char *argv[]) ...@@ -106,7 +104,7 @@ int main(int argc, char *argv[])
break; break;
} }
// Read background mesh on disk // Read background mesh if any
if(!CTX.bgm_filename.empty()) { if(!CTX.bgm_filename.empty()) {
MergeFile(CTX.bgm_filename); MergeFile(CTX.bgm_filename);
if(PView::list.size()) if(PView::list.size())
......
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