25int main(
int argc,
char* argv[])
28 "Converts OGS geometry file into another file format. "
29 "Currently *.gml (OGS6 XML-based format) and *.gli (OGS5 format) "
30 "formats are supported.\n\n"
31 "OpenGeoSys-6 software, version " +
34 "Copyright (c) 2012-2024, OpenGeoSys Community "
35 "(http://www.opengeosys.org)",
37 TCLAP::ValueArg<std::string> argInputFileName(
38 "i",
"input-file",
"the name of the geometry file to be converted",
39 true,
"",
"file name");
40 cmd.add(argInputFileName);
41 TCLAP::ValueArg<std::string> argOutputFileName(
43 "the name of the new geometry file whose file format is guessed from "
45 true,
"",
"file name");
46 cmd.add(argOutputFileName);
48 TCLAP::ValueArg<std::string> gmsh_path_arg(
"g",
"gmsh-path",
49 "the path to the gmsh binary",
50 false,
"",
"path as string");
51 cmd.add(gmsh_path_arg);
52 cmd.parse(argc, argv);
55 MPI_Init(&argc, &argv);
60 gmsh_path_arg.getValue());
62 assert(geo_names.size() == 1);
65 argOutputFileName.getValue());