[Dune] return value of mark.

Oliver Sander sander at mi.fu-berlin.de
Fri Dec 15 11:39:07 CET 2006


Hi Robert!
Thanks for restarting the discussion.  Here is my point of view:

I think that being able to check whether marking an element worked
may be useful but in the majority of cases you won't need that
information.  If you do need it you can get it through getMark(),
thus the return value of mark() is actually a redundancy.
In the interest of a slim interface I vote for making mark()
return void.

Cheers,
Oliver

************************************************************************
* Oliver Sander                ** email: sander at mi.fu-berlin.de        *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75217           *
* Institut für Mathematik II   ** URL  : page.mi.fu-berlin.de/~sander  *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************

On Fri, 15 Dec 2006, Robert Kloefkorn wrote:

> Hello Dune,
>
> one or two month ago we had a discussion about whether the mark method
> on Grid should return a value or not. Somehow we did not get a decision
> what to do. From Freiburg point of view this method should return true,
> if during calling of mark a marker was set, and return false if not.
> For example SGrid and YaspGrid always return false.
> When mark is called for a non-leaf entity in ALUGrid then no mark is set
> and false is returned.
>
> In the Grid test this is used to check, that the mark-flag that was set
> by mark, is returned by getMark. That is only one application of this
> return value feature. Of course the grid test should not be a reason for
> the design decisions, this only shows how this feature can be used.
>
> Furthermore, this feature is implemented in all Grids execpt UGGrid.
> Therefore I want to ask what to do with this task and what the other
> groups think about this.
>
> Regards
>
> R
>
> -- 
>
>  Robert Klöfkorn           <robertk at mathematik.uni-freiburg.de>
>
>  Mathematisches Institut              Tel: +49 (0) 761 203 5631
>  Abt. für Angewandte Mathematik       Fax: +49 (0) 761 203 5632
>  Universität Freiburg
>  Hermann-Herder-Str. 10
>  79104 Freiburg
>
>  http://www.mathematik.uni-freiburg.de/IAM/homepages/robertk
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://www.dune-project.org/cgi-bin/mailman/listinfo/dune
>


More information about the Dune mailing list