4#ifndef DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH
5#define DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH
10#include <dune/grid/io/file/vtk/basicwriter.hh>
21 class NonConformingBoundaryWriter
22 :
public NonConformingBoundaryIteratorFactory<GV>,
23 public BasicWriter<NonConformingBoundaryIteratorFactory<GV> >
25 typedef NonConformingBoundaryIteratorFactory<GV> Factory;
26 typedef BasicWriter<Factory> Base;
31 NonConformingBoundaryWriter(
const GV& gv_)
32 : Factory(gv_), Base(static_cast<const Factory&>(*this)), gv(gv_)
35 using Base::addCellData;
37 template<
typename Func>
38 void addCellData(
const std::shared_ptr<Func>& p,
const std::string& name) {
39 addCellData(std::shared_ptr<typename Base::FunctionWriter>
40 (
new SkeletonFunctionWriter<Func>(p, name)));
43 template<
typename Func>
44 void addCellData(Func* p,
const std::string& name) {
45 addCellData(std::shared_ptr<Func>(p), name);
48 using Base::addPointData;
50 template<
typename Func>
51 void addPointData(
const std::shared_ptr<Func>& p,
const std::string& name) {
52 addPointData(std::shared_ptr<typename Base::FunctionWriter>
53 (
new SkeletonFunctionWriter<Func>(p, name)));
56 template<
typename Func>
57 void addPointData(Func* p,
const std::string& name) {
58 addPointData(std::shared_ptr<Func>(p), name);
Functions for VTK output on the skeleton.
Dune namespace.
Definition: alignedallocator.hh:10
Functions for VTK output on the skeleton.