diff --git a/FileIO/VtkIO/VtuInterface.cpp b/FileIO/VtkIO/VtuInterface.cpp index a347ed525afef30d008026d991155574edaa342f..01dee579011526622ab52e08d88aa8040ace1a9f 100644 --- a/FileIO/VtkIO/VtuInterface.cpp +++ b/FileIO/VtkIO/VtuInterface.cpp @@ -52,8 +52,10 @@ VtuInterface::~VtuInterface() MeshLib::Mesh* VtuInterface::readVTUFile(std::string const &file_name) { - if (!BaseLib::IsFileExisting(file_name)) + if (!BaseLib::IsFileExisting(file_name)) { + ERR("File \"%s\" does not exist.", file_name.c_str()); return nullptr; + } vtkSmartPointer<vtkXMLUnstructuredGridReader> reader = vtkSmartPointer<vtkXMLUnstructuredGridReader>::New(); @@ -73,7 +75,7 @@ bool VtuInterface::writeToFile(std::string const &file_name) #ifdef USE_PETSC // Also for other approach with DDC. // In such case, a MPI_Comm argument is need to this member, - // and PETSC_COMM_WORLD shoud be replaced with the argument. + // and PETSC_COMM_WORLD should be replaced with the argument. int mpi_rank; MPI_Comm_rank(PETSC_COMM_WORLD, &mpi_rank); const std::string file_name_base = boost::erase_last_copy(file_name, ".vtu");