Commit 103e3026 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

add preprocessor protection

parent a2d00812
Pipeline #4710 passed with stage
in 52 minutes and 50 seconds
...@@ -185,9 +185,11 @@ namespace AMDiS ...@@ -185,9 +185,11 @@ namespace AMDiS
return read_gmsh_file<HostGrid>(filename, Dune::PriorityTag<42>{}); return read_gmsh_file<HostGrid>(filename, Dune::PriorityTag<42>{});
#endif #endif
} }
#if HAVE_DUNE_VTK
else if (ext == ".vtu") { else if (ext == ".vtu") {
return Dune::VtkReader<HostGrid, Dune::Vtk::LagrangeGridCreator<HostGrid>>::createGridFromFile(filename); return Dune::VtkReader<HostGrid, Dune::Vtk::LagrangeGridCreator<HostGrid>>::createGridFromFile(filename);
} }
#endif
else if (ext == ".1d" || ext == ".2d" || ext == ".3d" || ext == ".amc") { else if (ext == ".1d" || ext == ".2d" || ext == ".3d" || ext == ".amc") {
return read_alberta_file<HostGrid>(filename, Dune::PriorityTag<42>{}); return read_alberta_file<HostGrid>(filename, Dune::PriorityTag<42>{});
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment