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

Merge pull request #836 from wenqing/correction_a_pr

Corrected an error in PR #834
parents e377bdc1 d3e1b6ac
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ MeshLib::Mesh* readMeshFromFile(const std::string &file_name) ...@@ -46,7 +46,7 @@ MeshLib::Mesh* readMeshFromFile(const std::string &file_name)
NodePartitionedMeshReader read_pmesh(PETSC_COMM_WORLD); NodePartitionedMeshReader read_pmesh(PETSC_COMM_WORLD);
std::string const file_name_base = std::string const file_name_base =
boost::erase_last_copy(file_name, ".vtk"); boost::erase_last_copy(file_name, ".vtk");
return read_pmesh.read(file_name); return read_pmesh.read(file_name_base);
#else #else
if (BaseLib::hasFileExtension("msh", file_name)) if (BaseLib::hasFileExtension("msh", file_name))
{ {
......
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