3 #include <dune/common/typetraits.hh> 4 #include <dune/common/exceptions.hh> 6 #include <dune/grid/common/capabilities.hh> 7 #include <dune/grid/common/gridview.hh> 17 template <
class Gr
idImp>
20 template <
class Gr
idImp>
24 template <
class Gr
idImp>
30 using Grid = std::remove_const_t<GridImp>;
33 using IndexSet =
typename Grid::Traits::LevelIndexSet;
47 using Entity =
typename Grid::Traits::template Codim<cd>::Entity;
48 using Geometry =
typename Grid::template Codim<cd>::Geometry;
49 using LocalGeometry =
typename Grid::template Codim<cd>::LocalGeometry;
52 template <Dune::PartitionIteratorType pit>
62 enum { conforming = Dune::Capabilities::isLevelwiseConforming<Grid>::v };
66 template <
class Gr
idImp>
71 using Grid =
typename Traits::Grid;
72 using IndexSet =
typename Traits::IndexSet;
80 enum { conforming = Traits::conforming };
98 return grid().levelIndexSet(level_);
104 return grid().size(level_, codim);
108 int size(Dune::GeometryType
const& type)
const 110 return grid().size(level_, type);
114 template <
int cd, Dune::PartitionIteratorType pit = Dune::All_Partition>
117 return grid().template lbegin<cd, pit>(level_);
121 template <
int cd, Dune::PartitionIteratorType pit = Dune::All_Partition>
124 return grid().template lend<cd, pit>(level_);
128 IntersectionIterator
ibegin(
typename Codim<0>::Entity
const& entity)
const 130 return grid().ilevelbegin(entity);
134 IntersectionIterator
iend(
typename Codim<0>::Entity
const& entity)
const 136 return grid().ilevelend(entity);
140 CollectiveCommunication
const&
comm()
const 142 return grid().comm();
148 return grid().overlapSize(level_, codim);
154 return grid().ghostSize(level_, codim);
158 template <
class DataHandleImp,
class DataType>
159 void communicate(Dune::CommDataHandleIF<DataHandleImp, DataType>& data,
160 Dune::InterfaceType iftype,
161 Dune::CommunicationDirection dir)
const 163 return grid().communicate(data, iftype, dir, level_);
172 template <
class Gr
idImp>
178 using Grid = std::remove_const_t<GridImp>;
181 using IndexSet =
typename Grid::Traits::LeafIndexSet;
195 using Entity =
typename Grid::Traits::template Codim<cd>::Entity;
196 using Geometry =
typename Grid::template Codim<cd>::Geometry;
197 using LocalGeometry =
typename Grid::template Codim<cd>::LocalGeometry;
200 template <Dune::PartitionIteratorType pit>
210 enum { conforming = Dune::Capabilities::isLeafwiseConforming<Grid>::v };
214 template <
class Gr
idImp>
219 using Grid =
typename Traits::Grid;
220 using IndexSet =
typename Traits::IndexSet;
228 enum { conforming = Traits::conforming };
245 return grid().leafIndexSet();
251 return grid().size(codim);
255 int size(Dune::GeometryType
const& type)
const 257 return grid().size(type);
262 template <
int cd, Dune::PartitionIteratorType pit = Dune::All_Partition>
265 return grid().template leafbegin<cd, pit>();
269 template <
int cd, Dune::PartitionIteratorType pit = Dune::All_Partition>
272 return grid().template leafend<cd, pit>();
276 IntersectionIterator
ibegin(
typename Codim<0>::Entity
const& entity)
const 278 return grid().ileafbegin(entity);
282 IntersectionIterator
iend(
typename Codim<0>::Entity
const& entity)
const 284 return grid().ileafend(entity);
288 CollectiveCommunication
const&
comm()
const 290 return grid().comm();
296 return grid().overlapSize(codim);
302 return grid().ghostSize(codim);
306 template <
class DataHandleImp,
class DataType>
307 void communicate(Dune::CommDataHandleIF<DataHandleImp, DataType>& data,
308 Dune::InterfaceType iftype,
309 Dune::CommunicationDirection dir)
const 311 return grid().communicate(data, iftype, dir);
std::remove_const_t< GridImp > Grid
type of the grid
Definition: DefaultGridView.hpp:178
Definition: DefaultGridView.hpp:25
Definition: DefaultGridView.hpp:21
Definition: DefaultGridView.hpp:45
typename Grid::Traits::CollectiveCommunication CollectiveCommunication
type of the collective communication
Definition: DefaultGridView.hpp:190
typename Grid::Traits::LeafIntersection Intersection
type of the intersection
Definition: DefaultGridView.hpp:184
Codim< cd >::template Partition< pit >::Iterator end() const
Obtain end iterator for this view.
Definition: DefaultGridView.hpp:122
int size(int codim) const
Obtain number of entities in a given codimension.
Definition: DefaultGridView.hpp:249
CollectiveCommunication const & comm() const
Obtain collective communication object.
Definition: DefaultGridView.hpp:140
int ghostSize(int codim) const
Return size of the ghost region for a given codim on the grid view.
Definition: DefaultGridView.hpp:300
Codim< cd >::template Partition< pit >::Iterator begin() const
Obtain begin iterator for this view.
Definition: DefaultGridView.hpp:263
int overlapSize(int codim) const
Return size of the overlap region for a given codim on the grid view.
Definition: DefaultGridView.hpp:294
IndexSet const & indexSet() const
Obtain the index set.
Definition: DefaultGridView.hpp:96
Grid const & grid() const
Obtain a const reference to the underlying hierarchic grid.
Definition: DefaultGridView.hpp:89
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
IntersectionIterator iend(typename Codim< 0 >::Entity const &entity) const
Obtain end intersection iterator with respect to this view.
Definition: DefaultGridView.hpp:282
typename Grid::Traits::LevelIntersectionIterator IntersectionIterator
type of the intersection iterator
Definition: DefaultGridView.hpp:39
int ghostSize(int codim) const
Return size of the ghost region for a given codim on the grid view.
Definition: DefaultGridView.hpp:152
Codim< cd >::template Partition< pit >::Iterator begin() const
Obtain begin iterator for this view.
Definition: DefaultGridView.hpp:115
IntersectionIterator iend(typename Codim< 0 >::Entity const &entity) const
Obtain end intersection iterator with respect to this view.
Definition: DefaultGridView.hpp:134
int size(Dune::GeometryType const &type) const
Obtain number of entities with a given geometry type.
Definition: DefaultGridView.hpp:255
Define types needed to iterate over entities of a given partition type.
Definition: DefaultGridView.hpp:53
std::remove_const_t< GridImp > Grid
type of the grid
Definition: DefaultGridView.hpp:30
IntersectionIterator ibegin(typename Codim< 0 >::Entity const &entity) const
Obtain begin intersection iterator with respect to this view.
Definition: DefaultGridView.hpp:128
Definition: DefaultGridView.hpp:193
Define types needed to iterate over entities of a given partition type.
Definition: DefaultGridView.hpp:201
Definition: DefaultGridView.hpp:18
typename Grid::Traits::LevelIndexSet IndexSet
type of the index set
Definition: DefaultGridView.hpp:33
typename Grid::Traits::LeafIndexSet IndexSet
type of the index set
Definition: DefaultGridView.hpp:181
IndexSet const & indexSet() const
Obtain the index set.
Definition: DefaultGridView.hpp:243
typename Grid::Traits::LeafIntersectionIterator IntersectionIterator
type of the intersection iterator
Definition: DefaultGridView.hpp:187
typename Grid::Traits::CollectiveCommunication CollectiveCommunication
type of the collective communication
Definition: DefaultGridView.hpp:42
typename Grid::template Codim< cd >::template Partition< pit >::LevelIterator Iterator
iterator over a given codim and partition type
Definition: DefaultGridView.hpp:56
Codim< cd >::template Partition< pit >::Iterator end() const
Obtain end iterator for this view.
Definition: DefaultGridView.hpp:270
Grid const & grid() const
obtain a const reference to the underlying hierarchic grid
Definition: DefaultGridView.hpp:236
void communicate(Dune::CommDataHandleIF< DataHandleImp, DataType > &data, Dune::InterfaceType iftype, Dune::CommunicationDirection dir) const
Communicate data on this view.
Definition: DefaultGridView.hpp:307
IntersectionIterator ibegin(typename Codim< 0 >::Entity const &entity) const
Obtain begin intersection iterator with respect to this view.
Definition: DefaultGridView.hpp:276
void communicate(Dune::CommDataHandleIF< DataHandleImp, DataType > &data, Dune::InterfaceType iftype, Dune::CommunicationDirection dir) const
Communicate data on this view.
Definition: DefaultGridView.hpp:159
int size(Dune::GeometryType const &type) const
Obtain number of entities with a given geometry type.
Definition: DefaultGridView.hpp:108
typename Grid::template Codim< cd >::template Partition< pit >::LeafIterator Iterator
iterator over a given codim and partition type
Definition: DefaultGridView.hpp:204
int size(int codim) const
Obtain number of entities in a given codimension.
Definition: DefaultGridView.hpp:102
typename Grid::Traits::LevelIntersection Intersection
type of the intersection
Definition: DefaultGridView.hpp:36
CollectiveCommunication const & comm() const
Obtain collective communication object.
Definition: DefaultGridView.hpp:288
Definition: DefaultGridView.hpp:173
int overlapSize(int codim) const
Return size of the overlap region for a given codim on the grid view.
Definition: DefaultGridView.hpp:146