[Dune] SubsamplingVTKWriter

S. Swayamjyoti swayam.151 at gmail.com
Thu Oct 20 14:04:39 CEST 2011


Hi,

I am using the *SubsamplingVTKWriter *to write some of my grid data to a vtu
file, as follows.

*Dune::SubsamplingVTKWriter<GridType::LeafGridView> vtksubwriter(gv,6);
vtksubwriter.addVertexData(rho_i, "rho_i");
vtksubwriter.write("j_grid");*

But, I get an error saying that addVertexData is a private member.

*/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*

That's strange because, in the class documentation, addVertexData is a
public member for SubsamplingVTKWriter.

http://www.dune-project.org/doc-2.0/doxygen/html/classDune_1_1VTKWriter.html#6b0db5736b59f8c1d8c66f77a7371ded

Please suggest.

Regards,
Swayam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20111020/9c768bdf/attachment.htm>


More information about the Dune mailing list