Dune Core Modules (2.6.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 
15 namespace Dune {
16 
25  template< class GridView >
27  public VTKSequenceWriterBase<GridView>
28  {
29  public:
42  const std::string& name )
44  name,
45  "",
46  "",
47  vtkWriter->gridView_.comm().rank(),
48  vtkWriter->gridView_.comm().size())
49  {}
50 
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  };
96 
107  template< class GridView >
108  class
109  DUNE_DEPRECATED_MSG("Use VTKSequenceWriter together with a SubsamplingVTKWriter instead of SubsamplingVTKSequenceWriter!")
112  {
113  public:
114  explicit SubsamplingVTKSequenceWriter ( const GridView &gridView,
115  unsigned int level_,
116  const std::string& name,
117  const std::string& path,
118  const std::string& extendpath)
119  : VTKSequenceWriterBase<GridView>(std::make_shared<SubsamplingVTKWriter<GridView> >(gridView,level_),
120  name,path,extendpath,
121  gridView.comm().rank(), gridView.comm().size())
122  {}
123  };
124 
125 } // end namespace Dune
126 
127 #endif
int rank() const
Return rank, is between 0 and size()-1.
Definition: collectivecommunication.hh:94
int size() const
Number of processes in set, is greater than 0.
Definition: collectivecommunication.hh:100
Grid view abstract base class.
Definition: gridview.hh:60
Writer for the ouput of grid functions in the vtk format.
Definition: vtksequencewriter.hh:112
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
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: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:88
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:64
#define DUNE_DEPRECATED_MSG(text)
Mark some entity as deprecated.
Definition: deprecated.hh:169
const CollectiveCommunication & comm() const
obtain collective communication object
Definition: gridview.hh:246
Dune namespace.
Definition: alignedallocator.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 1, 22:29, 2024)