SPGrid is an efficient structured, parallel implementation of the DUNE grid interface.
The DUNE module dune-spgrid provides a structured, parallel grid. Though the dune-grid module already contains the structured grid YaspGrid, it lacks important features (see below for details).
The following table compares the features of SPGrid to those of SGrid and YaspGrid:
|Can communicate on codimensions
|Coordinate type is template parameter
|Supports anisotropic refinement
|Supports periodic boundary conditions
|Supports non-blocking communication
SPGrid supports different (global) refinement techniques, selected by a template parameter. Some refinement techniques allow an optional parameter, the refinement policy, to be passed to globalRefine. Currently, isotropic, anisotropic and bisection refinement are supported. If no policy is given, both, isotropic and anisotropic refinement, split each cube into 2^dim child cubes. For anisotropic refinement, a policy may be used to say which directions to split. Bisection refinement always split a cube into 2 child cubes; the split direction can be given by the policy. If no policy is given, the split directions are cycled through. By default, isotropic refinement is used.
SPGrid can be used through the preprocessor magic. The following table shows how to select different variants of SPGrid:
YaspGrid supports a different concept of periodicity. ↩︎