AOApplicationToPetsc

Maps a set of integers in the application-defined ordering to the PETSc ordering.

Synopsis

#include "petscao.h" 
int AOApplicationToPetsc(AO ao,int n,int *ia)
Collective on AO

Input Parameters

ao - the application ordering context
n - the number of integers
ia - the integers

Note

Any integers in ia[] that are negative are left unchanged. This allows one to convert, for example, neighbor lists that use negative entries to indicate nonexistent neighbors due to boundary conditions, etc.

Keywords

application ordering, mapping

See Also

AOCreateBasic(), AOView(), AOPetscToApplication(),
AOPetscToApplicationIS(), AOApplicationToPetsc()

Level:beginner
Location:
src/dm/ao/interface/ao.c
Index of all AO routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/dm/ao/examples/tutorials/ex2.c.html