Dune Core Modules (2.5.0)

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
10#include <dune/grid/io/file/vtk/vtksequencewriterbase.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,
90 VTK::DataMode dm = VTK::conforming )
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
int rank() const
Return rank, is between 0 and size()-1.
Definition: collectivecommunication.hh:93
int size() const
Number of processes in set, is greater than 0.
Definition: collectivecommunication.hh:99
Grid view abstract base class.
Definition: gridview.hh:60
Writer for the ouput of grid functions in the vtk format.
Definition: vtksequencewriter.hh:114
Writer for the output of subsampled grid functions in the vtk format.
Definition: subsamplingvtkwriter.hh:38
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: 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(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: vtkwriter.hh:87
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:64
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
struct DUNE_DEPRECATED_MSG("Use <type_traits> instead!") ConstantVolatileTraits
Determines whether a type is const or volatile and provides the unqualified types.
Definition: typetraits.hh:57
const CollectiveCommunication & comm() const
obtain collective communication object
Definition: gridview.hh:247
Dune namespace.
Definition: alignment.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 (Nov 23, 23:29, 2024)