Dune Core Modules (2.4.2)

vtksequencewriter.hh
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 <dune/grid/io/file/vtk/vtksequencewriterbase.hh>
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,
87  VTK::DataMode dm = VTK::conforming )
88  : VTKSequenceWriterBase<GridView>(std::make_shared<VTKWriter<GridView> >(gridView,dm),
89  name,path,extendpath,
90  gridView.comm().rank(), gridView.comm().size())
91  {}
92 
93  ~VTKSequenceWriter() {}
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
Grid view abstract base class.
Definition: gridview.hh:59
Writer for the ouput of grid functions in the vtk format.
Definition: vtksequencewriter.hh:107
Writer for the output of subsampled grid functions in the vtk format.
Definition: subsamplingvtkwriter.hh:37
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition: vtksequencewriterbase.hh:33
Writer for the ouput of grid functions in the vtk format.
Definition: vtksequencewriter.hh:25
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
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
Writer for the ouput of grid functions in the vtk format.
Definition: vtkwriter.hh:87
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:64
const CollectiveCommunication & comm() const
obtain collective communication object
Definition: gridview.hh:249
Dune namespace.
Definition: alignment.hh:10
Provides subsampled file i/o for the visualization toolkit.
Provides file i/o for the visualization toolkit.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 16, 22:29, 2024)