7 #include <dune/grid/common/gridfactory.hh>
35 std::vector<std::uint64_t>
const& point_ids)
37 assert(point_ids.size() == points.size());
38 for (std::size_t i = 0; i < points.size(); ++i)
44 if (
int(pieces.size()) == this->comm().size()) {
46 pieceReader.
read(pieces[this->
comm().rank()],
true);
Definition: datacollectorinterface.hh:9
typename Impl::VertexIdType< GF >::type VertexId_t
Definition: gridcreators/common.hh:22
decltype(std::declval< Factory >().insertVertex(std::declval< Args >()...)) HasInsertVertex
Definition: gridcreators/common.hh:10
ParallelGridCreator(GridFactory< Grid > &) -> ParallelGridCreator< Grid >
auto comm() const
Return the mpi collective communicator.
Definition: gridcreatorinterface.hh:89
GridFactory< Grid > & factory()
Return the associated GridFactory.
Definition: gridcreatorinterface.hh:77
Definition: derivedgridcreator.hh:19
typename Super::GlobalCoordinate GlobalCoordinate
Definition: derivedgridcreator.hh:23
GridCreatorInterface< typename GridCreator::Grid, Derived > Super
Definition: derivedgridcreator.hh:21
Definition: parallelgridcreator.hh:21
void insertPiecesImpl(std::vector< std::string > const &pieces)
Definition: parallelgridcreator.hh:42
typename Super::GlobalCoordinate GlobalCoordinate
Definition: parallelgridcreator.hh:24
void insertVerticesImpl(std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &point_ids)
Definition: parallelgridcreator.hh:34
VertexId_t< GridFactory< Grid > > VertexId
Definition: parallelgridcreator.hh:25
File-Reader for Vtk unstructured .vtu files.
Definition: vtkreader.hh:37
void read(std::string const &filename, bool fillCreator=true)
Read the grid from file with filename into the GridCreator.
Definition: vtkreader.impl.hh:20