[Dune] intersectioniterator.hh versus #include <dune/grid/common/intersectioniteratorwrapper.hh> ?
Martin Nolte
nolte at mathematik.uni-freiburg.de
Mon Jan 25 15:47:13 CET 2010
Hi Benedikt,
I admit that this transition is not named in the documentation. Maybe we need
a special transition page for such stuff.
Anyway, the block around line 486 or grid.hh reads as follows:
// The following types used to be part of the Codim structure.
// Yet, they are independent of the codimension.
typedef typename GridFamily::Traits::LeafIntersection LeafIntersection
DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LevelIntersection LevelIntersection
DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LeafIntersectionIterator
LeafIntersectionIterator DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LevelIntersectionIterator
LevelIntersectionIterator DUNE_DEPRECATED;
typedef typename GridFamily::Traits::HierarchicIterator
HierarchicIterator DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LevelIndexSet LevelIndexSet
DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LeafIndexSet LeafIndexSet
DUNE_DEPRECATED;
typedef typename GridFamily::Traits::GlobalIdSet GlobalIdSet DUNE_DEPRECATED;
typedef typename GridFamily::Traits::LocalIdSet LocalIdSet DUNE_DEPRECATED;
typedef typename GridFamily::Traits::CollectiveCommunication
CollectiveCommunication DUNE_DEPRECATED;
As the comment indicates, these type definitions are independent of the
codimension. So: Just obtain them directly from the grid instead of the Codim
structure.
Martin
Oswald Benedikt wrote:
> Dear Dune, I am currently in the process of removing deprecated warnings from our code:
>
> There are warnings such as:
>
> elementalmatprop.cc:170: warning: 'LeafIntersectionIterator' is deprecated (declared at /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/common/grid.hh:486)
>
> What should I properly use ?
>
> The intersectioniterator or the #include <dune/grid/common/intersectioniteratorwrapper.hh>
>
> I had difficulty in finding this from the docu ?
>
> Thanks very much! Benedikt
>
>
>
>
> ------------------------------------------------------------------------------------------------------------------
> Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist
> Paul Scherrer Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12
> "Passion is required for any great work, and for the Revolution passion and audacity are required in big doses.",
> Ernesto 'Che' Guevara, Letter to his parents.
> http://amas.web.psi.ch
> ------------------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
--
Martin Nolte <nolte at mathematik.uni-freiburg.de>
Universität Freiburg phone: +49-761-203-5642
Abteilung für angewandte Mathematik fax: +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany
More information about the Dune
mailing list