[dune-fem] Dune::Fem::GeoGridPart vs. Dune::GeometryGrid

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Tue Nov 5 17:38:12 CET 2013


Hi Tobias,

yes, you are right, but the problem comes only with this line:

GridPartType gridPart( coordFunction );

so before any call of the intersection iterator. This is just the instantiation of the geoGridPart ... What am I missing?

Cheers,
Andrea
__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk

________________________________________
From: Tobias Malkmus [tomalk at mathematik.uni-freiburg.de]
Sent: 05 November 2013 16:33
To: Sacconi, Andrea
Cc: dune-fem at dune-project.org
Subject: Re: [dune-fem] Dune::Fem::GeoGridPart vs. Dune::GeometryGrid

Hi Andrea
On 11/05/2013 05:16 PM, Sacconi, Andrea wrote:
> HI Tobias,
>
> thanks for the tip. I have replicated your example, but I still get the same error from the compiler:
>
> /dune/grid/common/intersectioniterator.hh:89:1: error: no type named ‘GridFamily’ in ‘const struct Dune::Fem::GeoGridPartFamily<Dune::Fem::AdaptiveDiscreteFunction<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double, double, 3, 3>, Dune::Fem::AdaptiveLeafGridPart<Dune::AlbertaGrid<2, 3>, (Dune::PartitionIteratorType)4u, false>, 1, Dune::Fem::CachingStorage> > >’

The GeoGridPart must be used in the same way as all other gridparts in
dune-fem.

Which means the intersection iterator needs to be taken from the
gridPart, eg.:

//-----------------------------------
typedef GridPartType :: IntersectionIteratorType IntersectionIteratorType;
IntersectionIteratorType end = gridPart.iend( entity );
//-----------------------------------

Best Tobias

>
> Any idea?
> __________________________________________________________
>
> Andrea Sacconi
> PhD student, Applied Mathematics
> AMMP Section, Department of Mathematics, Imperial College London,
> London SW7 2AZ, UK
>


--
Tobias Malkmus                 <tomalk at mathematik.uni-freiburg.de>

Mathematisches Institut               Tel: +49 761 203 5627
Abt. für Angewandte Mathematik        Universität Freiburg
Hermann-Herder-Str. 10
79104 Freiburg





More information about the dune-fem mailing list