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

Merge branch 'oneFilePerPart' into 'master'

One file per part

See merge request !19
parents ed95b8d5 7dc04087
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,9 @@ std::vector<std::pair<std::string, std::string> > GetUsage() ...@@ -106,7 +106,9 @@ std::vector<std::pair<std::string, std::string> > GetUsage()
s.push_back(mp("-rand float", "Set random perturbation factor")); s.push_back(mp("-rand float", "Set random perturbation factor"));
s.push_back(mp("-bgm file", "Load background mesh from file")); s.push_back(mp("-bgm file", "Load background mesh from file"));
s.push_back(mp("-check", "Perform various consistency checks on mesh")); s.push_back(mp("-check", "Perform various consistency checks on mesh"));
s.push_back(mp("-ignorePartBound", "Ignore partitions boundaries")); s.push_back(mp("-ignorePartBound", "Ignore partition boundaries"));
s.push_back(mp("-ignorePeriocity", "Ignore periodic boundaries"));
s.push_back(mp("-oneFilePerPart", "Save mesh partitions in separate files"));
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
s.push_back(mp("Post-processing options:", "")); s.push_back(mp("Post-processing options:", ""));
s.push_back(mp("-link int", "Select link mode between views (0, 1, 2, 3, 4)")); s.push_back(mp("-link int", "Select link mode between views (0, 1, 2, 3, 4)"));
...@@ -754,6 +756,14 @@ void GetOptions(int argc, char *argv[]) ...@@ -754,6 +756,14 @@ void GetOptions(int argc, char *argv[])
i++; i++;
opt_mesh_ignore_part_bound(0, GMSH_SET, 1); opt_mesh_ignore_part_bound(0, GMSH_SET, 1);
} }
else if(!strcmp(argv[i] + 1, "oneFilePerPart")) {
i++;
opt_mesh_msh_file_partitioned(0, GMSH_SET, 1);
}
else if(!strcmp(argv[i] + 1, "ignorePeriodicity")) {
i++;
opt_mesh_ignore_periodicity(0, GMSH_SET, 1);
}
else if(!strcmp(argv[i] + 1, "edgelmin")) { else if(!strcmp(argv[i] + 1, "edgelmin")) {
i++; i++;
if(argv[i]) { if(argv[i]) {
...@@ -1154,3 +1164,5 @@ void GetOptions(int argc, char *argv[]) ...@@ -1154,3 +1164,5 @@ void GetOptions(int argc, char *argv[])
if(CTX::instance()->terminal == 99) if(CTX::instance()->terminal == 99)
CTX::instance()->terminal = terminal; CTX::instance()->terminal = terminal;
} }
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