6#ifndef DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH
7#define DUNE_GRID_IO_FILE_VTK_BOUNDARYWRITER_HH
12#include <dune/grid/io/file/vtk/basicwriter.hh>
23 class NonConformingBoundaryWriter
24 :
public NonConformingBoundaryIteratorFactory<GV>,
25 public BasicWriter<NonConformingBoundaryIteratorFactory<GV> >
27 typedef NonConformingBoundaryIteratorFactory<GV> Factory;
28 typedef BasicWriter<Factory> Base;
33 NonConformingBoundaryWriter(
const GV& gv_)
34 : Factory(gv_), Base(static_cast<const Factory&>(*this)), gv(gv_)
37 using Base::addCellData;
39 template<
typename Func>
40 void addCellData(
const std::shared_ptr<Func>& p,
const std::string& name) {
41 addCellData(std::shared_ptr<typename Base::FunctionWriter>
42 (
new SkeletonFunctionWriter<Func>(p, name)));
45 template<
typename Func>
46 void addCellData(Func* p,
const std::string& name) {
47 addCellData(std::shared_ptr<Func>(p), name);
50 using Base::addPointData;
52 template<
typename Func>
53 void addPointData(
const std::shared_ptr<Func>& p,
const std::string& name) {
54 addPointData(std::shared_ptr<typename Base::FunctionWriter>
55 (
new SkeletonFunctionWriter<Func>(p, name)));
58 template<
typename Func>
59 void addPointData(Func* p,
const std::string& name) {
60 addPointData(std::shared_ptr<Func>(p), name);
Functions for VTK output on the skeleton.
Dune namespace.
Definition: alignedallocator.hh:13
Functions for VTK output on the skeleton.