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

make sure to print messages on terminal if Gmsh is not initialized

parent 99ec2a0a
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,8 @@ static int _initialized = 0; ...@@ -33,6 +33,8 @@ static int _initialized = 0;
static bool isInitialized() static bool isInitialized()
{ {
if(!_initialized){ if(!_initialized){
// make sure stuff gets printed out
CTX::instance()->terminal = 1;
Msg::Error("Gmsh has not been initialized"); Msg::Error("Gmsh has not been initialized");
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment