#423 dune-disc functions clash with vtkWriter, IndexSet vs. GridView
Metadata
Property | Value |
---|---|
Reported by | Jö Fahlke (jorrit@jorrit.de) |
Reported at | Aug 12, 2008 19:09 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Jö Fahlke (jorrit@jorrit.de) |
Last edited at | Aug 15, 2008 16:35 |
Closed by | Jö Fahlke (jorrit@jorrit.de) |
Closed at | Aug 15, 2008 16:35 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | Fixed in Revision: 509 |
Description
Since GridView is used everywhere, dune-disc functions have problems with vtkWriter.
For example, VTKGridFunctionWrapper (functions.hh) instanciates VTKWriter with an IndexSet:
// Wrapper for VTK output of grid functions template<class GridImp, class IS, class RT, int m> class VTKGridFunctionWrapper : public VTKWriter<GridImp,IS>::VTKFunction
But VTKWriter expects a GridView:
template< class GridImp, class GridView = typename GridImp :: LeafGridView > class VTKWriter {
I noticed the same with DGFunction (dgfunction.hh):
//! VTK output
typename VTKWriter<G,IS>::VTKFunction *
vtkFunction (std::string s) const
Is the an easy way to get a GridView given a Grid and an IndexSet? Or is a more radical approach required? Note, that I don't have commit access for dune-disc, but I'm glad to prepare a patch.