[Dune] Remark BartonNackman Interface Check.

Oliver Sander sander at mi.fu-berlin.de
Wed Oct 25 18:12:24 CEST 2006


Do I understand this correctly that if I now run code with full
debugging on any call to a grid will take twice as long?

--
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 Wed, 25 Oct 2006, Robert Kloefkorn wrote:

> Hello Dune,
>
> some remarks to the CHECK_INTERFACE_IMPLEMENTATION.
> This macro is only non-empty if NDEBUG is __not__ and DUNE_DEVEL_MODE
> __is__ defined. The reason is, that for checking the implementation this
> macro at the moment needs to call the desired method twice, which is a
> hindrance of this method, but it works.
>
> For methods returning void one can use the macro
> CHECK_AND_CALL_INTERFACE_IMPLEMENTATION which does the check and calls
> the method. if NDEBUG is defined, this macro just calls the interface
> method and the cehck is disabled.
>
> For details see source list (dune-common/common/bartonnackmanifcheck.hh)
>
> 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