This release is a pre-release and may not be stable for production use.
Dune-SPGrid
The DUNE module dune-spgrid provides a structured, parallel grid: SPGrid.
Features
The following table compares the features of SPGrid to those of SGrid and YaspGrid:
YaspGrid |
SPGrid |
|
|---|---|---|
| Can communicate on codimensions | all | all |
| Coordinate type is template parameter | yes | yes |
| Supports anisotropic refinement | no | yes |
| Supports periodic boundary conditions | no1 | yes |
| Supports non-blocking communication | no | yes |
| Supports tensor-product grids | yes | no |
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, but
this list can be extended by downstream modules.
By default, isotropic refinement is used.
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 splits 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.
Note: SPGrid does not support tensor-product grids, as YaspGrid does.
This feature can be added by a metagrid layer, if desired.
Preprocessor Magic
SPGrid can be used through the preprocessor magic. The following table shows how
to select different variants of SPGrid:
| GRIDTYPE | Refinement |
|---|---|
SPGRID |
Default (Isotropic) |
SPGRID_SERIAL |
Default (Isotropic, no MPI) |
SPGRID_ISOTROPIC |
Isotropic |
SPGRID_ISOTROPIC_SERIAL |
Isotropic (no MPI) |
SPGRID_ANISOTROPIC |
Anisotropic |
SPGRID_ANISOTROPIC_SERIAL |
Anisotropic (no MPI) |
SPGRID_BISECTION |
Bisection |
SPGRID_BISECTION_SERIAL |
Bisection (no MPI) |
SPGRID_COUNT_FLOPS |
use Dune::Fem::Double as ctype |
git-9627b15ad28ffa4447ba6b7fc83e5950bc6034f7
-
YaspGridsupports a different concept of periodicity. ↩
Metadata
Release files for dune-spgrid 2.9.0.dev20220426
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dune-spgrid-2.9.0.dev20220426.tar.gz | 77.5 kB | Without provenance | Details for dune-spgrid-2.9.0.dev20220426.tar.gz |
Release files / dune-spgrid-2.9.0.dev20220426.tar.gz
| Download URL | dune-spgrid-2.9.0.dev20220426.tar.gz |
|---|---|
| Size | 77.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a11b3ffb7f0896a5e247eda20cdb57e0788d6b80f35191f490f5399a97e429
|
|
BLAKE2b-256 checksum How to use checksums |
942a15b2318d36c17f0ed874805e753a9588f1114e2dd0b82c57e90486a8b54f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for dune-spgrid 2.9.0.dev20220426
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.