<div dir="ltr"><div><div><div><div><div>Dear Duners,<br><br></div>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<br></div>