From 7647b603872ecd03c7569e87c26b0e8eb9018418 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Wed, 6 Mar 2019 07:57:51 +0100 Subject: [PATCH] [A/U/MGT] Read/use gmsh path necessary for MS Windows. --- .../computeSurfaceNodeIDsInPolygonalRegion.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp b/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp index b23d4825a24..7a2cd92698b 100644 --- a/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp +++ b/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp @@ -88,13 +88,18 @@ int main (int argc, char* argv[]) "", "file name of input geometry"); cmd.add(geo_in); + TCLAP::ValueArg<std::string> gmsh_path_arg("g", "gmsh-path", + "the path to the gmsh binary", + false, "", "path as string"); + cmd.add(gmsh_path_arg); cmd.parse(argc, argv); std::unique_ptr<MeshLib::Mesh const> mesh(MeshLib::IO::readMeshFromFile(mesh_in.getValue())); INFO("Mesh read: %u nodes, %u elements.", mesh->getNumberOfNodes(), mesh->getNumberOfElements()); GeoLib::GEOObjects geo_objs; - FileIO::readGeometryFromFile(geo_in.getValue(), geo_objs); + FileIO::readGeometryFromFile(geo_in.getValue(), geo_objs, + gmsh_path_arg.getValue()); std::vector<std::string> geo_names; geo_objs.getGeometryNames(geo_names); INFO("Geometry '%s' read: %u points, %u polylines.", -- GitLab