[Dune] Alberta in 3D
Oliver Sander
sander at mi.fu-berlin.de
Wed Nov 21 10:57:26 CET 2007
We had the same issue with UG. There, a few tricks
(basically the introduction of namespaces) made the
use of 2d and 3d grids in the same application possible.
Is something similar conceivable for Alberta?
--
Oliver
Andreas Dedner schrieb:
> One does not have to reconfigure just tell make which
> dimension one wants to use. As fas as I understand it
> it is not possible to use the 2d and 3d Alberta libraries
> at the same time.
> Andreas
>
> On Wed, 21 Nov 2007 10:22:53 +0100
> Oliver Sander <sander at mi.fu-berlin.de> wrote:
>
>> Hi All!
>> How difficult do the AlbertaGrid maintainers estimate the
>> implementation of the possibility to have both 2d and 3d
>> AlbertaGrid without reconfiguring?
>>
>> --
>> Oliver
>>
>> Christian Engwer schrieb:
>>
>>> On Tue, Nov 20, 2007 at 09:37:36PM +0100, Andreas
>>>
>> Dedner wrote:
>>
>>>
>>>
>>>> I think Christian is right - more precicely you
>>>> have to use the right Alberta library in the make
>>>>
>> process.
>>
>>>> Using --with-grid-dim (or something like that) during
>>>>
>>>>
>>> That should do the trick, except that the switch is
>>> --with-alberta-dim. We once changed this parameter,
>>>
>> because it is only
>>
>>> used for alberta.
>>>
>>> Cheers Christian
>>>
>>>
>>>
>>>
>>>> configure can solve
>>>> this problem since then the configure script writes
>>>> something like
>>>> -lALBERTA_$GRIDDIM...
>>>> into the Makefile and one can redefine GRIDDIM during
>>>> make.
>>>> Andreas
>>>>
>>>> On Tue, 20 Nov 2007 20:51:38 +0100
>>>> Christian Engwer <christi at uni-hd.de> wrote:
>>>>
>>>>
>>>>> Hi Sven,
>>>>>
>>>>> On Tue, Nov 20, 2007 at 06:46:06PM +0100, Sven
>>>>>
>> Marnach
>>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Andreas Dedner schrieb am Di, 20. Nov 2007, um
>>>>>>
>> 17:00:34
>>
>>>>>>
>>>>>>
>>>>> +0100:
>>>>>
>>>>>
>>>>>>> What sort of compiler error do you get?
>>>>>>>
>>>>>>>
>>>>>> I get the following error message:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
> /home/sven/dune/grid/dune/grid/albertagrid/albertagrid.cc:
>
>>>>
>>>>
>>>>> In member function 'void
>>>>>
>>>>>
>>>>>
> Dune::AlbertaGridIntersectionIterator<GridImp>::setupVirtEn()
>
>>>>
>>>>
>>>>> const [with GridImp = const Dune::AlbertaGrid<3,
>>>>>
>> 3>]':
>>
>>>>>
>>>>>
> /home/sven/dune/grid/dune/grid/albertagrid/albertagrid.cc:1904:
>
>>>>
>>>>
>>>>> instantiated from 'typename
>>>>>
>>>>>
>>>>>
> Dune::AlbertaGridIntersectionIterator<GridImp>::EntityPointer
>
>>>>
>>>>
>> Dune::AlbertaGridIntersectionIterator<GridImp>::outside()
>>
>>>>> const [with GridImp = const Dune::AlbertaGrid<3, 3>]'
>>>>>
>>>>>
> /home/sven/dune/grid/dune/grid/common/intersectioniteratorwrapper.hh:89:
>
>>>>
>>>>
>>>>> instantiated from 'typename
>>>>> GridImp::Codim<0>::EntityPointer
>>>>> Dune::IntersectionIteratorWrapper<GridImp,
>>>>> IntersectionIteratorImpl>::outside() const [with
>>>>>
>> GridImp
>>
>>>>> = const Dune::AlbertaGrid<3, 3>,
>>>>>
>> IntersectionIteratorImpl
>>
>>>>> = Dune::AlbertaGridIntersectionIterator<const
>>>>> Dune::AlbertaGrid<3, 3> >]'
>>>>>
>>>>>
> /home/sven/dune/grid/dune/grid/common/intersectioniterator.hh:266:
>
>>>>
>>>>
>>>>> instantiated from 'typename
>>>>> GridImp::Codim<0>::EntityPointer
>>>>> Dune::IntersectionIterator<GridImp,
>>>>> IntersectionIteratorImp>::outside() const [with
>>>>>
>> GridImp =
>>
>>>>> const Dune::AlbertaGrid<3, 3>,
>>>>>
>> IntersectionIteratorImp =
>>
>>>>> Dune::LeafIntersectionIteratorWrapper]'
>>>>>
>>>>>
>>>>>> test.cc:26: instantiated from here
>>>>>>
>>>>>>
>>>>>>
> /home/sven/dune/grid/dune/grid/albertagrid/albertagrid.cc:2294:
>
>>>>
>>>>
>>>>> error: incomplete type
>>>>>
>> 'Dune::SetupVirtualNeighbour<const
>>
>>>>> Dune::AlbertaGrid<3, 3>, 3, 3>' used in nested name
>>>>> specifier
>>>>>
>>>>> This error message usually meens that the class in
>>>>> question is
>>>>> declared, but not implemented.
>>>>>
>>>>> Alberta only works in either 2d or 3d. You always
>>>>>
>> have to
>>
>>>>> configure
>>>>> Dune appropriately. For whihc dimension did you
>>>>>
>> configure
>>
>>>>> Dune?
>>>>>
>>>>> Cheers Christian
>>>>>
>>>>> _______________________________________________
>>>>> Dune mailing list
>>>>> Dune at dune-project.org
>>>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Dune mailing list
>>>> Dune at dune-project.org
>>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> 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) *
>>
>>
> ************************************************************************
>
>> _______________________________________________
>> 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