Skip to content
Snippets Groups Projects
Commit cee19ca4 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

runGmshClient: en cas d'initialize, return après avoir défini mshFileName

parent aa7995c0
No related branches found
No related tags found
No related merge requests found
...@@ -542,12 +542,13 @@ static void importPhysicalGroups(GModel *m) ...@@ -542,12 +542,13 @@ static void importPhysicalGroups(GModel *m)
static void runGmshClient(const std::string &action) static void runGmshClient(const std::string &action)
{ {
if(action == "initialize") return;
onelab::server::citer it = onelab::server::instance()->findClient("Gmsh"); onelab::server::citer it = onelab::server::instance()->findClient("Gmsh");
if(it == onelab::server::instance()->lastClient()) return; if(it == onelab::server::instance()->lastClient()) return;
onelab::client *c = it->second; onelab::client *c = it->second;
std::string mshFileName = getMshFileName(c); std::string mshFileName = getMshFileName(c);
if(action == "initialize") return;
static std::string modelName = ""; static std::string modelName = "";
if(modelName.empty()){ if(modelName.empty()){
// first pass is special to prevent model reload, as well as // first pass is special to prevent model reload, as well as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment