[Dune] [#597] Add basic interfaces with and without virtual methods for functions/mappings
Dune
dune at dune-project.org
Thu Oct 8 11:34:43 CEST 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#597 - Add basic interfaces with and without virtual methods for functions/mappings
User who did this - Carsten Gräser (Carsten)
----------
I commited a proposal in r5626. It contains a class template Function with an evaluate(x,y) method and a derived template VirtualFunction with a virtual evaluate(x,y) method. Input and output are parameters. In contrast to the original suggestion output is done by a reference argument.
While 'const DomainType&' and 'RangeType&' are hard wired in VirtualFunction you can select the full type in Function to meat evan the more esoteric needs.
We can now specify that function classes for the interpolate() methods in dune-localfunctions should derive from Function and implement the evaluate method. VirtualFunction could e.g. serve as base class/replacement for BoundarySegment. It also allows to define the interpolate() method for virtual LocalFE and thus mixed element discretizations could soon be possible again.
Oliver, Christian and I would not like to see Barton-Nackman or other template tricks for the non-virtual base class to keep it simple and clean. In should just serves as minimal interface definition.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=597#comment1190
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.
More information about the Dune
mailing list