dune-grid 3.0-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
15namespace 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 )
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 )
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
Provides subsampled file i/o for the visualization toolkit.
Provides file i/o for the visualization toolkit.
STL namespace.
Include standard header files.
Definition agrid.hh:60
DataMode
Whether to produce conforming or non-conforming output.
Definition common.hh:64
@ conforming
Output conforming data.
Definition common.hh:70
Grid view abstract base class.
Definition common/gridview.hh:60
Writer for the output of subsampled grid functions in the vtk format.
Definition subsamplingvtkwriter.hh:38
Writer for the ouput of grid functions in the vtk format.
Definition vtksequencewriter.hh:28
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()
Definition vtksequencewriter.hh:96
VTKSequenceWriter(std::shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition vtksequencewriter.hh:41
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
Writer for the ouput of grid functions in the vtk format.
Definition vtksequencewriter.hh:114
SubsamplingVTKSequenceWriter(const GridView &gridView, unsigned int level_, const std::string &name, const std::string &path, const std::string &extendpath)
Definition vtksequencewriter.hh:116
~SubsamplingVTKSequenceWriter()
Definition vtksequencewriter.hh:125
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition vtksequencewriterbase.hh:32
Writer for the ouput of grid functions in the vtk format.
Definition vtkwriter.hh:86