[Dune] problems with subsampling in vtk writer
Arya Fallahi
arya.fallahi at gmail.com
Fri Nov 15 13:31:15 CET 2013
Dear Duners,
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.
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.
The code very briefly is as follows:
std::string vtkreturnstring("");
Dune::SubsamplingVTKWriter<GridView>
vtkWriterSubsampling(grid_.leafView(),subsamplinglevel,true);
vtkWriterSubsampling.addCellData(new VTKFunctionDGTD<Grid> (grid_, en_,
"electric-field") );
vtkreturnstring = vtkWriterSubsampling.pwrite(filename.c_str(),
path.c_str(), "", Dune::VTK::appendedraw);
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.
Best regards,
Arya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20131115/0929389b/attachment.htm>
More information about the Dune
mailing list