Commit f263c5bc authored by Peter Bastian's avatar Peter Bastian

adapted to changes of VTKWriter - compiles again

[[Imported from SVN: r214]]
parent 989433a8
......@@ -105,7 +105,7 @@ void adaptiveintegration (Grid& grid, const Functor& f)
}
// write grid in VTK format
Dune::VTKWriter<Grid> vtkwriter(grid);
Dune::VTKWriter<typename Grid::LeafGridView> vtkwriter(grid.leafView());
vtkwriter.write("adaptivegrid",Dune::VTKOptions::binaryappended);
}
......
......@@ -55,7 +55,7 @@ void elementdata (const G& grid, const F& f)
// generate a VTK file
// Dune::LeafP0Function<G,double> cc(grid,c);
Dune::VTKWriter<G> vtkwriter(grid); /*@\label{edh:vtk0}@*/
Dune::VTKWriter<typename G::LeafGridView> vtkwriter(grid.leafView()); /*@\label{edh:vtk0}@*/
vtkwriter.addCellData(c,"data");
vtkwriter.write("elementdata",Dune::VTKOptions::binaryappended); /*@\label{edh:vtk1}@*/
......
......@@ -45,7 +45,7 @@ void vertexdata (const G& grid, const F& f)
// generate a VTK file
// Dune::LeafP1Function<G,double> cc(grid,c);
Dune::VTKWriter<G> vtkwriter(grid);
Dune::VTKWriter<typename G::LeafGridView> vtkwriter(grid.leafView());
vtkwriter.addVertexData(c,"data");
vtkwriter.write("vertexdata",Dune::VTKOptions::binaryappended);
......
......@@ -6,7 +6,7 @@
template<class G, class V>
void vtkout (const G& grid, const V& c, const char* name, int k)
{
Dune::VTKWriter<G> vtkwriter(grid);
Dune::VTKWriter<typename G::LeafGridView> vtkwriter(grid.leafView());
char fname[128];
sprintf(fname,"%s-%05d",name,k);
vtkwriter.addCellData(c,"celldata");
......
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