Hi,<br><br>I am using the <b>SubsamplingVTKWriter </b>to write some of my grid data to a vtu file, as follows.<br><br><b>Dune::SubsamplingVTKWriter<GridType::LeafGridView> vtksubwriter(gv,6);<br>vtksubwriter.addVertexData(rho_i, "rho_i");<br>
vtksubwriter.write("j_grid");</b><br><br>But, I get an error saying that addVertexData is a private member. <br><br><b>/home/sj/dune/dune-grid/dune/grid/io/file/vtk/subsamplingvtkwriter.hh:111:10: error: ‘void Dune::SubsamplingVTKWriter<GridView>::addVertexData(const V&, const string&, int) [with V = Dune::DynamicVector<double>, GridView = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u> >, std::string = std::basic_string<char>]’ is private</b><br>
<br>That's strange because, in the class documentation, addVertexData is a public member for SubsamplingVTKWriter.<br><br><a href="http://www.dune-project.org/doc-2.0/doxygen/html/classDune_1_1VTKWriter.html#6b0db5736b59f8c1d8c66f77a7371ded">http://www.dune-project.org/doc-2.0/doxygen/html/classDune_1_1VTKWriter.html#6b0db5736b59f8c1d8c66f77a7371ded</a><br>
<br>Please suggest.<br><br>Regards,<br>Swayam<br>