Dune Core Modules (2.7.1)
grid.hh
76 template< class HostGrid, class CoordFunction = DefaultCoordFunction< HostGrid >, class Allocator = std::allocator< void > >
228 GeometryGrid ( HostGrid &hostGrid, CoordFunction &coordFunction, const Allocator &allocator = Allocator() )
244 GeometryGrid ( std::shared_ptr<HostGrid> hostGrid, std::shared_ptr<CoordFunction> coordFunction, const Allocator &allocator = Allocator() )
276 GeometryGrid ( HostGrid *hostGrid, CoordFunction *coordFunction, const Allocator &allocator = Allocator() )
277 DUNE_DEPRECATED_MSG("Pass the host grid and coord function as shared_ptr instead of a raw pointer. This constructor will be removed after Dune 2.7.")
294 DUNE_DEPRECATED_MSG("Pass the host grid as shared_ptr instead of a raw pointer. This constructor will be removed after Dune 2.7.")
643 mutable std::vector< LevelIndexSet *, typename std::allocator_traits<Allocator>::template rebind_alloc< LevelIndexSet * > > levelIndexSets_;
647 mutable typename std::allocator_traits<Allocator>::template rebind_alloc< char > storageAllocator_;
Store a reference to an entity with a minimal memory footprint.
Definition: entityseed.hh:24
Implementation & impl()
access to the underlying implementation
Definition: entity.hh:78
CoordFunction & coordFunction()
obtain mutable reference to the coordinate function.
Definition: grid.hh:618
int size(int codim) const
obtain number of leaf entities
Definition: grid.hh:349
int size(int level, GeometryType type) const
obtain number of entites on a level
Definition: grid.hh:362
const CoordFunction & coordFunction() const
obtain constant reference to the coordinate function
Definition: grid.hh:615
LeafGridView leafGridView() const
View for the leaf grid.
Definition: grid.hh:564
Traits::LevelIntersectionIterator LevelIntersectionIterator
iterator over intersections with other entities on the same level
Definition: grid.hh:136
Traits::template Codim< EntitySeed::codimension >::Entity entity(const EntitySeed &seed) const
obtain Entity from EntitySeed
Definition: grid.hh:545
LevelGridView levelGridView(int level) const
View for a grid level.
Definition: grid.hh:557
GeometryGrid(std::shared_ptr< HostGrid > hostGrid, std::shared_ptr< CoordFunction > coordFunction, const Allocator &allocator=Allocator())
constructor
Definition: grid.hh:244
int size(int level, int codim) const
obtain number of entites on a level
Definition: grid.hh:338
Traits::LeafIndexSet LeafIndexSet
type of leaf index set
Definition: grid.hh:162
GeometryGrid(HostGrid *hostGrid, CoordFunction *coordFunction, const Allocator &allocator=Allocator())
constructor
Definition: grid.hh:276
GeometryGrid(HostGrid *hostGrid, const Allocator &allocator=Allocator())
constructor
Definition: grid.hh:293
Traits::HierarchicIterator HierarchicIterator
iterator over the grid hierarchy
Definition: grid.hh:132
const HostGrid & hostGrid() const
obtain constant reference to the host grid
Definition: grid.hh:576
Traits::ctype ctype
type of vector coordinates (e.g., double)
Definition: grid.hh:209
GridFamily::Traits::LevelGridView LevelGridView
type of view for level grid
Definition: grid.hh:146
HostGrid & hostGrid()
obtain mutable reference to the host grid
Definition: grid.hh:582
Traits::LevelIndexSet LevelIndexSet
type of level index set
Definition: grid.hh:172
Traits::LocalIdSet LocalIdSet
type of local id set
Definition: grid.hh:201
Traits::GlobalIdSet GlobalIdSet
type of global id set
Definition: grid.hh:184
Traits::LeafIntersectionIterator LeafIntersectionIterator
iterator over intersections with other entities on the leaf level
Definition: grid.hh:134
GeometryGrid(std::shared_ptr< HostGrid > hostGrid, const Allocator &allocator=Allocator())
constructor
Definition: grid.hh:260
GridFamily::Traits::LeafGridView LeafGridView
type of view for leaf grid
Definition: grid.hh:144
Traits::CollectiveCommunication CollectiveCommunication
communicator with all other processes having some part of the grid
Definition: grid.hh:212
size_t numBoundarySegments() const
returns the number of boundary segments within the macro grid
Definition: grid.hh:380
int size(GeometryType type) const
obtain number of leaf entities
Definition: grid.hh:371
GeometryGrid(HostGrid &hostGrid, CoordFunction &coordFunction, const Allocator &allocator=Allocator())
constructor
Definition: grid.hh:228
const CollectiveCommunication & comm() const
obtain CollectiveCommunication object
Definition: grid.hh:470
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:279
Definition: grid.hh:855
static std::conditional< std::is_reference< InterfaceType >::value, typenamestd::add_lvalue_reference< typenameReturnImplementationType< typenamestd::remove_reference< InterfaceType >::type >::ImplementationType >::type, typenamestd::remove_const< typenameReturnImplementationType< typenamestd::remove_reference< InterfaceType >::type >::ImplementationType >::type >::type getRealImplementation(InterfaceType &&i)
return real implementation of interface class
Definition: grid.hh:1027
Different resources needed by all grid implementations.
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
#define DUNE_DEPRECATED_MSG(text)
Mark some entity as deprecated.
Definition: deprecated.hh:169
shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition: shared_ptr.hh:75
STL namespace.
Traits::template Codim< codim >::LocalGeometry LocalGeometry
type of local geometry
Definition: grid.hh:692
Partition< All_Partition >::LeafIterator LeafIterator
type of leaf iterator
Definition: grid.hh:717
Traits::template Codim< codim >::Entity Entity
type of entity
Definition: grid.hh:667
Partition< All_Partition >::LevelIterator LevelIterator
type of level iterator
Definition: grid.hh:726
Traits::template Codim< codim >::Geometry Geometry
type of world geometry
Definition: grid.hh:682
provides access to host grid objects from GeometryGrid
Definition: identitygrid.hh:36
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)