dune-grid  2.5-git
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 
9 #include <dune/common/deprecated.hh>
11 
14 
15 namespace Dune {
16 
25  template< class GridView >
27  public VTKSequenceWriterBase<GridView>
28  {
29  public:
41  VTKSequenceWriter ( std::shared_ptr<VTKWriter<GridView> > vtkWriter,
42  const std::string& name )
43  : VTKSequenceWriterBase<GridView>(vtkWriter,
44  name,
45  "",
46  "",
47  vtkWriter->gridView_.comm().rank(),
48  vtkWriter->gridView_.comm().size())
49  {}
50 
68  VTKSequenceWriter ( std::shared_ptr<VTKWriter<GridView> > vtkWriter,
69  const std::string& name,
70  const std::string& path,
71  const std::string& extendpath )
72  : VTKSequenceWriterBase<GridView>(vtkWriter,
73  name,
74  path,
75  extendpath,
76  vtkWriter->gridView_.comm().rank(),
77  vtkWriter->gridView_.comm().size())
78  {}
79 
86  explicit VTKSequenceWriter ( const GridView &gridView,
87  const std::string& name,
88  const std::string& path,
89  const std::string& extendpath,
91  : VTKSequenceWriterBase<GridView>(std::make_shared<VTKWriter<GridView> >(gridView,dm),
92  name,path,extendpath,
93  gridView.comm().rank(), gridView.comm().size())
94  {}
95 
97  };
98 
109  template< class GridView >
110  class
111  DUNE_DEPRECATED_MSG("Use VTKSequenceWriter together with a SubsamplingVTKWriter instead of SubsamplingVTKSequenceWriter!")
114  {
115  public:
116  explicit SubsamplingVTKSequenceWriter ( const GridView &gridView,
117  unsigned int level_,
118  const std::string& name,
119  const std::string& path,
120  const std::string& extendpath)
121  : VTKSequenceWriterBase<GridView>(std::make_shared<SubsamplingVTKWriter<GridView> >(gridView,level_),
122  name,path,extendpath,
123  gridView.comm().rank(), gridView.comm().size())
124  {}
126 
127  };
128 
129 } // end namespace Dune
130 
131 #endif
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtksequencewriter.hh:26
SubsamplingVTKSequenceWriter(const GridView &gridView, unsigned int level_, const std::string &name, const std::string &path, const std::string &extendpath)
Definition: vtksequencewriter.hh:116
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtkwriter.hh:87
~SubsamplingVTKSequenceWriter()
Definition: vtksequencewriter.hh:125
Output conforming data.
Definition: common.hh:70
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:64
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition: vtksequencewriterbase.hh:31
Include standard header files.
Definition: agrid.hh:59
~VTKSequenceWriter()
Definition: vtksequencewriter.hh:96
STL namespace.
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:68
VTKSequenceWriter(std::shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition: vtksequencewriter.hh:41
Provides file i/o for the visualization toolkit.
Writer for the ouput of grid functions in the vtk format.Writes arbitrary grid functions (living on c...
Definition: vtksequencewriter.hh:110
Writer for the output of subsampled grid functions in the vtk format.Writes arbitrary grid functions ...
Definition: subsamplingvtkwriter.hh:36
Grid view abstract base class.
Definition: common/gridview.hh:59
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:86
Provides subsampled file i/o for the visualization toolkit.