[Dune] [#1004] Make VTKFunctionPtr a const-pointer
Benedikt Oswald
benedikt.oswald at psi.ch
Tue Jan 24 15:23:58 CET 2012
Dear Dune,
although related to the VTK writer, perhaps my comment is somewhat off-topic.
I observe, when using a virtual resampling of the solution with the VTK subsampling functionality
that I 'lose' certain parts of the solution, specifically when using subsampling level = 2.
I have attached an example, in much compressed form as jpg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-01-24 at 3.18.24 PM.jp2
Type: image/jp2
Size: 13366 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120124/af10758c/attachment.jp2>
-------------- next part --------------
In the case of subsampling level = 1, there is no such problem.
It would be nice to have a look at this problem as well, in case you plan to modify
the VTK writer functionality anyway.
Have a great day! Benedikt
On Jan 24, 2012, at 3:04 PM, Dune wrote:
> THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
>
> The following task has a new comment added:
>
> FS#1004 - Make VTKFunctionPtr a const-pointer
> User who did this - Jö Fahlke (joe)
>
> ----------
> I see only one implication, potentially: In the future, we won't be able to introduce a VTK-writer that calls non-const methods on the VTKFunctions. However, I don't think that is an issue, since all the overridable virtual functions of the VTKFunction base class (ncomps(), evaluate(), name()) are declared const anyway.
>
> The other thing I was wondering is whether deep down in the VTKWriter, something still relies on the VTKFunction beeing mutable (you never know...). This is apparently not the case, since both code with the VTKSequenceWriter and the SubsamplingVTKWriter compiles.
>
> Do you see anything else that could go awry?
> ----------
>
> More information can be found at the following URL:
> http://www.dune-project.org/flyspray/index.php?do=details&task_id=1004#comment3101
>
> You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist, http://amas.web.psi.ch
Paul Scherrer Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12
"Passion is required for any great work, and for the revolution passion and audacity are required in big doses.",
Ernesto 'Che' Guevara, Letter to his parents.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
More information about the Dune
mailing list