DUNE PDELab (2.8)

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 <memory>
8
9#include <dune/grid/io/file/vtk/vtksequencewriterbase.hh>
10
13
14namespace 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,
89 VTK::DataMode dm = VTK::conforming )
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
Grid view abstract base class.
Definition: gridview.hh:63
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: 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
Writer for the ouput of grid functions in the vtk format.
Definition: vtkwriter.hh:93
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:65
Dune namespace.
Definition: alignedallocator.hh:11
STL namespace.
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.111.3 (Dec 21, 23:30, 2024)