|
openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
Functor class generating a numbering optimized for PETSc. More...
#include <SF_numbering.h>
Public Member Functions | |
| petsc_numbering (overlapping_layout< T > &pl, bool use_rcm=false) | |
| void | operator() (meshdata< T, S > &mesh) |
| Generate a numbering as necessary for good PETSc parallel performance. More... | |
Functor class generating a numbering optimized for PETSc.
| T | Integer type. |
| S | Floating point type. |
Definition at line 237 of file SF_numbering.h.
|
inline |
| pl | Overlapping parallel layout. Reordered in place when use_rcm is set. |
| use_rcm | If true, apply the reversed breadth-first renumbering; otherwise ascending. |
Definition at line 247 of file SF_numbering.h.
|
inlinevirtual |
Generate a numbering as necessary for good PETSc parallel performance.
PETSc implicitly the following parallel layout of unknowns:
| Rank | unknowns intervals |
|---|---|
| 0 | [0,1,...,N0-1] |
| 1 | [N0,N0+1,...,N1-1] |
| ... | ... |
For good parallel performance, the node indices used in the domain decomposition should match as closely as possible to the described layout. This makes a renumbering necessary.
| [in,out] | mesh | The mesh. |
Implements SF::numbering< T, S >.
Definition at line 270 of file SF_numbering.h.