Skip to main content
Pre-release

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-e05ebf8bf4777758d4cc8178f987d4d361465c13

  1. YaspGrid supports a different concept of periodicity. ↩

Metadata

Release files for dune-spgrid 2.11.dev20250116

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dune-spgrid 2.11.dev20250116
File Size Uploaded
dune_spgrid-2.11.dev20250116.tar.gz 79.1 kB Details

Release files / dune_spgrid-2.11.dev20250116.tar.gz

Download URL dune_spgrid-2.11.dev20250116.tar.gz
Size 79.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3f00ffd1335546063f4e40d4b4073fd88edfbd26966e3d1aba665f05179217e
BLAKE2b-256 checksum
How to use checksums
ae68ca8c1ccec772c60675a3c7717ac6bf74eeccc83e4000188784668e645479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.10.0

1 release file

2.9.0

1 release file

2.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page