Skip to content
Snippets Groups Projects
Commit b940380c authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App/IO] Check gmsh return value.

parent f3c97d67
No related branches found
No related tags found
No related merge requests found
...@@ -82,11 +82,12 @@ bool createSurface(GeoLib::Polyline const& ply, ...@@ -82,11 +82,12 @@ bool createSurface(GeoLib::Polyline const& ply,
std::string gmsh_command = std::string gmsh_command =
"gmsh -2 -algo meshadapt \"" + file_base_name + ".geo\""; "gmsh -2 -algo meshadapt \"" + file_base_name + ".geo\"";
gmsh_command += " -o \"" + file_base_name + ".msh\""; gmsh_command += " -o \"" + file_base_name + ".msh\"";
// Temporarilly disable unused result warning int const gmsh_return_value = std::system(gmsh_command.c_str());
#pragma GCC diagnostic push if (gmsh_return_value != 0)
#pragma GCC diagnostic ignored "-Wunused-result" {
std::system(gmsh_command.c_str()); WARN("Call to '%s' returned non-zero value %d.", gmsh_command.c_str(),
#pragma GCC diagnostic pop gmsh_return_value);
}
auto surface_mesh = auto surface_mesh =
FileIO::GMSH::readGMSHMesh("\"" + file_base_name + ".msh\""); FileIO::GMSH::readGMSHMesh("\"" + file_base_name + ".msh\"");
if (!surface_mesh) if (!surface_mesh)
......
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