Dune Core Modules (2.11.0)
gridcreatorinterface.hh
Base class for grid creators in a CRTP style.
Definition: gridcreatorinterface.hh:23
GridCreatorInterface(Args &&... args)
Constructor. Construct a new GridFactory from the passed arguments.
Definition: gridcreatorinterface.hh:43
GridFactory< Grid > & factory()
Return the associated GridFactory.
Definition: gridcreatorinterface.hh:75
std::unique_ptr< Grid > createGrid() const
Construct the actual grid using the GridFactory.
Definition: gridcreatorinterface.hh:69
auto comm() const
Return the mpi collective communicator.
Definition: gridcreatorinterface.hh:87
void insertPieces(std::vector< std::string > const &pieces)
Insert part of a grid stored in file into factory.
Definition: gridcreatorinterface.hh:63
GridCreatorInterface(std::shared_ptr< GridFactory< Grid > > factory)
Constructor. Store the shared_ptr to the GridFactory.
Definition: gridcreatorinterface.hh:36
GridCreatorInterface(GridFactory< Grid > &factory)
Constructor. Stores a reference to the passed GridFactory.
Definition: gridcreatorinterface.hh:31
GridFactory< Grid > const & factory() const
Return the associated (const) GridFactory.
Definition: gridcreatorinterface.hh:81
void insertVertices(std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &point_ids)
Insert all points as vertices into the factory.
Definition: gridcreatorinterface.hh:48
void insertElements(std::vector< std::uint8_t > const &types, std::vector< std::int64_t > const &offsets, std::vector< std::int64_t > const &connectivity)
Create elements based on type and connectivity description.
Definition: gridcreatorinterface.hh:55
Provide a generic factory class for unstructured grids.
Various macros to work with Dune module version numbers.
Helpers for dealing with MPI.
std::shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition: shared_ptr.hh:72
STL namespace.
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Feb 14, 23:39, 2026)