P4estDomainGenerator(p4est_t *p4est, const std::array< int, 2 > &ns, int num_ghost_cells, const BlockMapFunc &bmf)
Construct a new P4estDomainGenerator object.
Generates Domain objects form a given p4est object.
Definition: P4estDomainGenerator.h:36
std::function< void(int block_no, double unit_x, double unit_y, double &x, double &y)> BlockMapFunc
Maps coordinate in a block to a coordinate in the domain.
Definition: P4estDomainGenerator.h:52
Domain< 2 > getFinestDomain()
Return the finest domain.
bool hasCoarserDomain()
return true if there is a coarser domain to be generated.
Generates Domain objects.
Definition: DomainGenerator.h:39
Domain< 2 > getCoarserDomain()
Return a new coarser domain.