[Dune] dune-grid r4244.

Oliver Sander sander at mi.fu-berlin.de
Fri Jul 18 11:42:02 CEST 2008


Hi Robert!
>
> the compile option you suggested, i.e.
>
> make -DGridType=AlbertaGrid\<2,2\>
>
> is indeed as nice solution of the grid selecting problem.
> However, doing this will still lead to the problem with linking the 
> correct library, for example for AlbertaGrid.
>   
You would link to all libraries that have been found.  The
linker only pulls in what it needs.  I know that there are several
Alberta libraries that you cannot link to at the same time.  But
I think that this is a flaw in the design of Alberta, and hacks in
DUNE to compensate for this should be restricted and not involve,
say, YaspGrid.

> Another drawback is, that every grid implementation that should be 
> selectable has to be included in order to apply the above solution.
> The gridtype.hh can select the grid includes which does reduce 
> compilation time.
>   
How about something like

make -DGridType=AlbertaGrid\<2,2\> -DGRID_HEADER=albertagrid.hh

#include <dune/grid/GRID_HEADER>

?

:-)
Oliver


> So you see, no current available solution of this problem is perfect.
>
> Regards
>
> R
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>   


-- 
************************************************************************
* 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)   *
************************************************************************





More information about the Dune mailing list