Skip to content
Snippets Groups Projects
Commit e8288bbe authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use Vtk::VtkReader instead of deprecated VtkReader

parent 26dd083c
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,11 @@ int main (int argc, char *argv[]) try
grid = factory.createGrid();
} else if (suffix == ".vtu" or suffix == ".vtp")
#if HAVE_DUNE_VTK
#if DUNE_VERSION_GTE(DUNE_VTK, 2, 10)
grid = Vtk::VtkReader<GridType>::createGridFromFile(path + "/" + gridFile);
#else
grid = VtkReader<GridType>::createGridFromFile(path + "/" + gridFile);
#endif
#else
DUNE_THROW(NotImplemented, "Please install dune-vtk for VTK reading support!");
#endif
......
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