[Dune] [Dune-Commit] dune-grid r7075 - trunk/dune/grid/utility
Oliver Sander
sander at mi.fu-berlin.de
Wed Nov 10 10:18:37 CET 2010
Hi Robert!
Why don't you put your good thought into the wiki, so we can
discuss them at the meeting?
Best,
Oliver
Am 09.11.2010 18:33, schrieb robertk at dune-project.org:
> Author: robertk
> Date: 2010-11-09 18:33:29 +0100 (Tue, 09 Nov 2010)
> New Revision: 7075
>
> Removed:
> trunk/dune/grid/utility/persistentcontainer.hh
> Modified:
> trunk/dune/grid/utility/Makefile.am
> Log:
> no need to share my good thoughts.
>
>
>
> Modified: trunk/dune/grid/utility/Makefile.am
> ===================================================================
> --- trunk/dune/grid/utility/Makefile.am 2010-11-08 13:41:34 UTC (rev 7074)
> +++ trunk/dune/grid/utility/Makefile.am 2010-11-09 17:33:29 UTC (rev 7075)
> @@ -5,7 +5,7 @@
> gridutilitydir = $(includedir)/dune/grid/utility
> gridutility_HEADERS = hierarchicsearch.hh \
> grapedataioformattypes.hh gridtype.hh griddim.hh \
> - hostgridaccess.hh persistentcontainer.hh \
> + hostgridaccess.hh \
> structuredgridfactory.hh
>
> include $(top_srcdir)/am/global-rules
>
> Deleted: trunk/dune/grid/utility/persistentcontainer.hh
> ===================================================================
> --- trunk/dune/grid/utility/persistentcontainer.hh 2010-11-08 13:41:34 UTC (rev 7074)
> +++ trunk/dune/grid/utility/persistentcontainer.hh 2010-11-09 17:33:29 UTC (rev 7075)
> @@ -1,64 +0,0 @@
> -#ifndef DUNE_PERSISTENTCONTAINER_HH
> -#define DUNE_PERSISTENTCONTAINER_HH
> -
> -#include<vector>
> -
> -namespace Dune {
> -
> -
> -template<class Grid, int codim, class Data>
> -class PersistentContainerVector
> -{
> -protected:
> - typedef typename Grid :: HierarchicIndexSetType HierarchicIndexSetType;
> - typedef Grid GridType;
> - const GridType& grid_;
> - const HierarchicIndexSetType& indexSet_;
> - std::vector< Data> data_;
> -
> -public:
> - typedef typename GridType :: template Codim< codim> :: Entity EntityType;
> -public:
> - PersistentContainer( const GridType& grid )
> - : grid_( grid )
> - , indexSet_( grid_.hierarchicIndexSet() )
> - , data_()
> - {
> - // resize to current size
> - adapt();
> - }
> -
> - PersistentContainer( const PersistentContainer& other )
> - : grid_( other.grid_ )
> - , indexSet_( other.indexSet_ )
> - , data_( other.data_ )
> - {}
> -
> - Data& operator () (const EntityType& entity )
> - {
> - return data_[ indexSet_.index( entity ) ];
> - }
> -
> - const Data& operator () (const EntityType& entity ) const
> - {
> - return data_[ indexSet_.index( entity ) ];
> - }
> -
> - Data& operator () (const EntityType& entity, const int subEntity, const int codim )
> - {
> - return data_[ indexSet_.subIndex( entity, subEntity, codim ) ];
> - }
> -
> - const Data& operator () (const EntityType& entity, const int subEntity, const int codim ) const
> - {
> - return data_[ indexSet_.subIndex( entity, subEntity, codim ) ];
> - }
> -
> - void adapt() const
> - {
> - data_.resize( indexSet_.size( codim ) );
> - }
> -};
> -
> -} // end namespace Dune
> -#endif // end DUNE_PERSISTENTCONTAINER_HH
>
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
>
--
************************************************************************
* Oliver Sander ** email: sander at mi.fu-berlin.de *
* Freie Universität Berlin ** phone: + 49 (30) 838 75348 *
* Institut für Mathematik ** 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