Skip to content
Snippets Groups Projects
Commit 78d3d7d6 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/MGTL] constructMeshesFromGeometry: Improve output.

parent 3589cb20
No related branches found
No related tags found
No related merge requests found
......@@ -104,10 +104,15 @@ int main(int argc, char* argv[])
ERR("Could not create a mesh for each given geometry.");
return EXIT_FAILURE;
}
if (!m_ptr->getNodes().empty())
if (m_ptr->getNodes().empty())
{
MeshLib::IO::writeMeshToFile(*m_ptr, m_ptr->getName() + ".vtu");
WARN(
"The created mesh '%s' hasn't any nodes or elements and thus "
"it isn't written to file.",
m_ptr->getName().c_str());
continue;
}
MeshLib::IO::writeMeshToFile(*m_ptr, m_ptr->getName() + ".vtu");
}
return EXIT_SUCCESS;
......
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