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 (const overlapping_layout< T > &pl) | |
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 230 of file SF_numbering.h.
|
inline |
Definition at line 235 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 258 of file SF_numbering.h.