dune-grid  2.4.1
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 
8 
11 
12 namespace Dune {
13 
22  template< class GridView >
24  public VTKSequenceWriterBase<GridView>
25  {
26  public:
38  VTKSequenceWriter ( shared_ptr<VTKWriter<GridView> > vtkWriter,
39  const std::string& name )
40  : VTKSequenceWriterBase<GridView>(vtkWriter,
41  name,
42  "",
43  "",
44  vtkWriter->gridView_.comm().rank(),
45  vtkWriter->gridView_.comm().size())
46  {}
47 
65  VTKSequenceWriter ( std::shared_ptr<VTKWriter<GridView> > vtkWriter,
66  const std::string& name,
67  const std::string& path,
68  const std::string& extendpath )
69  : VTKSequenceWriterBase<GridView>(vtkWriter,
70  name,
71  path,
72  extendpath,
73  vtkWriter->gridView_.comm().rank(),
74  vtkWriter->gridView_.comm().size())
75  {}
76 
83  explicit VTKSequenceWriter ( const GridView &gridView,
84  const std::string& name,
85  const std::string& path,
86  const std::string& extendpath,
88  : VTKSequenceWriterBase<GridView>(std::make_shared<VTKWriter<GridView> >(gridView,dm),
89  name,path,extendpath,
90  gridView.comm().rank(), gridView.comm().size())
91  {}
92 
94  };
95 
104  template< class GridView >
106  public VTKSequenceWriterBase<GridView>
107  {
108  public:
109  explicit SubsamplingVTKSequenceWriter ( const GridView &gridView,
110  unsigned int level_,
111  const std::string& name,
112  const std::string& path,
113  const std::string& extendpath)
114  : VTKSequenceWriterBase<GridView>(std::make_shared<SubsamplingVTKWriter<GridView> >(gridView,level_),
115  name,path,extendpath,
116  gridView.comm().rank(), gridView.comm().size())
117  {}
119 
120  };
121 
122 } // end namespace Dune
123 
124 #endif
Provides file i/o for the visualization toolkit.
VTKSequenceWriter(shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition: vtksequencewriter.hh:38
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:65
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:64
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtksequencewriter.hh:23
~VTKSequenceWriter()
Definition: vtksequencewriter.hh:93
SubsamplingVTKSequenceWriter(const GridView &gridView, unsigned int level_, const std::string &name, const std::string &path, const std::string &extendpath)
Definition: vtksequencewriter.hh:109
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:83
~SubsamplingVTKSequenceWriter()
Definition: vtksequencewriter.hh:118
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtkwriter.hh:87
Output conforming data.
Definition: common.hh:70
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtksequencewriter.hh:105
Grid view abstract base class.
Definition: common/gridview.hh:58
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition: vtksequencewriterbase.hh:32
Provides subsampled file i/o for the visualization toolkit.
Writer for the output of subsampled grid functions in the vtk format.Writes arbitrary grid functions ...
Definition: subsamplingvtkwriter.hh:35