Skip to content
Snippets Groups Projects
Commit f54ec419 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[bug] set a mesh to MeshIO

parent d23679c9
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ void writeMeshToFile(const MeshLib::Mesh &mesh, const std::string &file_name)
if (BaseLib::hasFileExtension("msh", file_name))
{
Legacy::MeshIO meshIO;
meshIO.setMesh(&mesh);
meshIO.writeToFile(file_name);
} else if (BaseLib::hasFileExtension("vtu", file_name)) {
FileIO::VtuInterface writer(&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