<div dir="ltr"><div><div><div><div><div>Dear Duners,<br><br></div>I sent an email 4 days ago but received no reply concernign my problem. I will be very thankful if someone can guide me on how to use subsampling in vtk writers.<br>
</div><div><br>I got to have
problems with subsampling version of vtk writer in dune since one week, I
searched a lot in the website and tutorials but I could not solve it on
my own. I will be more than thankful if someone shares with me a code
that works with subsampling.<br>
<br></div>The problem is that although I increase the subsampling level
the returned vtk files are all the same. I am using tetrahedral meshes
with high order expansions, that's why I definitely need the subsampling
functions.<br>
<br></div>The code very briefly is as follows:<br><br>std::string vtkreturnstring("");<br>Dune::SubsamplingVTKWriter<GridView> vtkWriterSubsampling(grid_.leafView(),subsamplinglevel,true);<br> vtkWriterSubsampling.addCellData(new VTKFunctionDGTD<Grid> (grid_, en_, "electric-field") );<br>
vtkreturnstring = vtkWriterSubsampling.pwrite(filename.c_str(), path.c_str(), "", Dune::VTK::appendedraw);<br><br></div>Do
you think there is anything stupid I am doing here. I will really
appreciate if someone shares with me a sample code that works with
subsampling.<br>
<br></div>Best regards,<br>Arya</div>