DUNE PDELab (git)

vtksequencewriter.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5
6#ifndef DUNE_VTKSEQUENCE_HH
7#define DUNE_VTKSEQUENCE_HH
8
9#include <memory>
10
11#include <dune/grid/io/file/vtk/vtksequencewriterbase.hh>
12
15
16namespace Dune {
17
26 template< class GridView >
28 public VTKSequenceWriterBase<GridView>
29 {
30 public:
43 const std::string& name )
45 name,
46 "",
47 "",
48 vtkWriter->gridView_.comm().rank(),
49 vtkWriter->gridView_.comm().size())
50 {}
51
70 const std::string& name,
71 const std::string& path,
72 const std::string& extendpath )
74 name,
75 path,
76 extendpath,
77 vtkWriter->gridView_.comm().rank(),
78 vtkWriter->gridView_.comm().size())
79 {}
80
87 explicit VTKSequenceWriter ( const GridView &gridView,
88 const std::string& name,
89 const std::string& path,
90 const std::string& extendpath,
91 VTK::DataMode dm = VTK::conforming )
92 : VTKSequenceWriterBase<GridView>(std::make_shared<VTKWriter<GridView> >(gridView,dm),
93 name,path,extendpath,
94 gridView.comm().rank(), gridView.comm().size())
95 {}
96 };
97
98} // end namespace Dune
99
100#endif
Grid view abstract base class.
Definition: gridview.hh:66
Base class to write pvd-files which contains a list of all collected vtk-files.
Definition: vtksequencewriterbase.hh:34
const std::shared_ptr< VTKWriter< GridView > > & vtkWriter() const
Definition: vtksequencewriterbase.hh:63
Writer for the output of grid functions in the vtk format.
Definition: vtksequencewriter.hh:29
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:69
VTKSequenceWriter(std::shared_ptr< VTKWriter< GridView > > vtkWriter, const std::string &name)
Constructor with a given VTKWriter or SubsamplingVTKWriter.
Definition: vtksequencewriter.hh:42
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:87
Writer for the output of grid functions in the vtk format.
Definition: vtkwriter.hh:95
DataMode
Whether to produce conforming or non-conforming output.
Definition: common.hh:67
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75
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 12, 23:30, 2024)