dune-grid  2.8.0
vtksequencewriter.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 
4 #ifndef DUNE_VTKSEQUENCE_HH
5 #define DUNE_VTKSEQUENCE_HH
6 
7 #include <memory>
8 
10 
13 
14 namespace Dune {
15 
24  template< class GridView >
26  public VTKSequenceWriterBase<GridView>
27  {
28  public:
41  const std::string& name )
43  name,
44  "",
45  "",
46  vtkWriter->gridView_.comm().rank(),
47  vtkWriter->gridView_.comm().size())
48  {}
49 
68  const std::string& name,
69  const std::string& path,
70  const std::string& extendpath )
72  name,
73  path,
74  extendpath,
75  vtkWriter->gridView_.comm().rank(),
76  vtkWriter->gridView_.comm().size())
77  {}
78 
85  explicit VTKSequenceWriter ( const GridView &gridView,
86  const std::string& name,
87  const std::string& path,
88  const std::string& extendpath,
90  : VTKSequenceWriterBase<GridView>(std::make_shared<VTKWriter<GridView> >(gridView,dm),
91  name,path,extendpath,
92  gridView.comm().rank(), gridView.comm().size())
93  {}
94  };
95 
96 } // end namespace Dune
97 
98 #endif
Provides subsampled file i/o for the visualization toolkit.
Provides file i/o for the visualization toolkit.
Include standard header files.
Definition: agrid.hh:58
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:65
@ conforming
Output conforming data.
Definition: common.hh:71
Grid view abstract base class.
Definition: common/gridview.hh:63
Writer for the ouput of grid functions in the vtk format.
Definition: vtksequencewriter.hh:27
VTKSequenceWriter(std::shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name, const std::string &path, const std::string &extendpath)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition: vtksequencewriter.hh:67
VTKSequenceWriter(std::shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition: vtksequencewriter.hh:40
VTKSequenceWriter(const GridView &gridView, const std::string &name, const std::string &path, const std::string &extendpath, VTK::DataMode dm=VTK::conforming)
Constructor creating its own VTKWriter object.
Definition: vtksequencewriter.hh:85
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition: vtksequencewriterbase.hh:32
const std::shared_ptr< VTKWriter< GridView > > & vtkWriter() const
Definition: vtksequencewriterbase.hh:61
Writer for the ouput of grid functions in the vtk format.
Definition: vtkwriter.hh:93