4.3. Indexing and Ordering

Up: Contents Next: Application Orderings Previous: Basic Vector Operations

When writing parallel PDE codes there is extra complexity caused by having multiple ways of indexing (numbering) and ordering objects such as vertices and degrees of freedom. For example, a grid generator or partitioner may renumber the nodes, requiring adjustment of the other data structures that refer to these objects; see Figure 9 . In addition, local numbering (on a single processor) of objects may be different than the global (cross-processor) numbering. PETSc provides a variety of tools that help to manage the mapping among the various numbering systems. The two most basic are the AO (application ordering), which enables mapping between different global (cross-processor) numbering schemes and the ISLocalToGlobalMapping, which allows mapping between local (on-processor) and global (cross-processor) numbering.


Up: Contents Next: Application Orderings Previous: Basic Vector Operations