module providing a structured grid
Project description
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 | no[^1] | yes |
| Supports non-blocking communication | no | yes |
| Supports tensor-product grids | yes | no |
[^1]: YaspGrid supports a different concept of periodicity.
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-94c773f15ceca05c247f5e91d7710ba48afa311b
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dune_spgrid-2.12.0.1.tar.gz.
File metadata
- Download URL: dune_spgrid-2.12.0.1.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99793a5a2f903b2bf62eaab950383bf8f63292a24e26470bb9641a484a2ec5b6
|
|
| MD5 |
47d0efc717409238d16ad7a99cb67af6
|
|
| BLAKE2b-256 |
b736845737461aa70c0200a4dd4a18af023c9ec728bb264e869759befd473c57
|
Provenance
The following attestation bundles were made for dune_spgrid-2.12.0.1.tar.gz:
Publisher:
packaging.yml on adedner/dune-testpypi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dune_spgrid-2.12.0.1.tar.gz -
Subject digest:
99793a5a2f903b2bf62eaab950383bf8f63292a24e26470bb9641a484a2ec5b6 - Sigstore transparency entry: 1525094306
- Sigstore integration time:
-
Permalink:
adedner/dune-testpypi@077a1f2fbf6411abea72c6b3d060f2708d0e0363 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/adedner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
packaging.yml@077a1f2fbf6411abea72c6b3d060f2708d0e0363 -
Trigger Event:
workflow_dispatch
-
Statement type: