diff --git a/Gui/mainwindow.cpp b/Gui/mainwindow.cpp index 3706e5a292a4183c3b1b64255d206a4da5f075f6..109557f452ea05748e30ef3b44ebe609058750b7 100644 --- a/Gui/mainwindow.cpp +++ b/Gui/mainwindow.cpp @@ -909,8 +909,11 @@ void MainWindow::callGMSH(std::vector<std::string> const & selectedGeometries, s { if (param4 == -1) // adaptive meshing selected { - GMSHInterface gmsh_io (fileName.toStdString()); // fname.toStdString()); + GMSHInterface gmsh_io (fileName.toStdString()); gmsh_io.writeAllDataToGMSHInputFile(*_geoModels, selectedGeometries, param1, param2, param3); + std::string gmsh_command ("gmsh -2 "); + gmsh_command += fileName.toStdString(); + system (gmsh_command.c_str()); } else // homogeneous meshing selected {