Go to the documentation of this file.
3#include <dune/grid/io/file/vtk/vtkwriter.hh>
8template< class G, class V>
9void vtkout ( const G& grid, const V& c, const char* name, int k, double time=0.0, int rank=0)
11 Dune::VTKWriter<typename G::LeafGridView> vtkwriter(grid.leafGridView());
14 sprintf(fname, "%s-%05d",name,k);
15 sprintf(sername, "%s.series",name);
16 vtkwriter.addCellData(c, "celldata");
17 vtkwriter.write(fname,Dune::VTK::ascii);
20 std::ofstream serstream(sername, (k==0 ? std::ios_base::out : std::ios_base::app));
21 serstream << k << " " << fname << ".vtu " << time << std::endl;
void vtkout(const G &grid, const V &c, const char *name, int k, double time=0.0, int rank=0) Definition: vtkout.hh:9
|