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

pp

parent ced1f769
Branches
Tags
No related merge requests found
...@@ -47,9 +47,8 @@ const char *GetGmshBuildOptions(){ return GMSH_CONFIG_OPTIONS; } ...@@ -47,9 +47,8 @@ const char *GetGmshBuildOptions(){ return GMSH_CONFIG_OPTIONS; }
void PrintUsage(const char *name) void PrintUsage(const char *name)
{ {
// If you make changes in this routine, please also change the // If you make changes in this routine, please also change the texinfo
// texinfo documentation (doc/texinfo/gmsh.texi) and the man page // documentation (doc/texinfo/gmsh.texi) and the man page (doc/gmsh.1)
// (doc/gmsh.1)
Msg::Direct("Usage: %s [options] [files]", name); Msg::Direct("Usage: %s [options] [files]", name);
Msg::Direct("Geometry options:"); Msg::Direct("Geometry options:");
Msg::Direct(" -0 Output unrolled geometry, then exit"); Msg::Direct(" -0 Output unrolled geometry, then exit");
......
...@@ -380,7 +380,7 @@ static void updateGraphs() ...@@ -380,7 +380,7 @@ static void updateGraphs()
} }
} }
static void writeDb(const std::string &fileName, bool withTimeStamp=false) static void saveDb(const std::string &fileName, bool withTimeStamp=false)
{ {
std::string name(fileName); std::string name(fileName);
if(withTimeStamp){ if(withTimeStamp){
...@@ -394,11 +394,11 @@ static void writeDb(const std::string &fileName, bool withTimeStamp=false) ...@@ -394,11 +394,11 @@ static void writeDb(const std::string &fileName, bool withTimeStamp=false)
name = split[0] + split[1] + stamp + split[2]; name = split[0] + split[1] + stamp + split[2];
} }
Msg::StatusBar(2, true, "Writing database '%s'...", name.c_str()); Msg::StatusBar(2, true, "Saving database '%s'...", name.c_str());
if(onelab::server::instance()->toFile(name)) if(onelab::server::instance()->toFile(name))
Msg::StatusBar(2, true, "Done writing database '%s'", name.c_str()); Msg::StatusBar(2, true, "Done saving database '%s'", name.c_str());
else else
Msg::Error("Could not write database '%s'", name.c_str()); Msg::Error("Could not save database '%s'", name.c_str());
} }
static void loadDb(const std::string &name) static void loadDb(const std::string &name)
...@@ -451,7 +451,7 @@ void onelab_cb(Fl_Widget *w, void *data) ...@@ -451,7 +451,7 @@ void onelab_cb(Fl_Widget *w, void *data)
} }
std::string s = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db"; std::string s = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db";
if(fileChooser(FILE_CHOOSER_CREATE, "Save", "*.db", s.c_str())) if(fileChooser(FILE_CHOOSER_CREATE, "Save", "*.db", s.c_str()))
writeDb(fileChooserGetName(1)); saveDb(fileChooserGetName(1));
return; return;
} }
...@@ -538,7 +538,7 @@ void onelab_cb(Fl_Widget *w, void *data) ...@@ -538,7 +538,7 @@ void onelab_cb(Fl_Widget *w, void *data)
if(CTX::instance()->solver.autoSaveDatabase && action == "compute"){ if(CTX::instance()->solver.autoSaveDatabase && action == "compute"){
std::string s = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db"; std::string s = SplitFileName(GModel::current()->getFileName())[0] + "onelab.db";
writeDb(s, true); saveDb(s, true);
} }
FlGui::instance()->onelab->stop(false); FlGui::instance()->onelab->stop(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment