[Dune] problem with subsampling

Oliver Sander sander at igpm.rwth-aachen.de
Wed Nov 20 07:12:08 CET 2013


Dear Arya,
sorry for not helping you, seems everybody is busy with other things.
Try stepping through your code with a debugger.  Maybe you can find out
why the subsamplinglevel parameter gets ignored.
--
Oliver

Am 19.11.2013 19:13, schrieb Arya Fallahi:
> Dear Duners,
> 
> 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.
> 
> 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
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20131120/b0b73a0d/attachment.sig>


More information about the Dune mailing list