petsc-dev 2014-04-15
Report Typos and Errors


Permutes an array of blocks of reals in the application-defined ordering to the PETSc ordering.


#include "petscao.h" 
PetscErrorCode  AOApplicationToPetscPermuteReal(AO ao, PetscInt block, PetscReal array[])
Collective on AO

Input Parameters

ao - The application ordering context
block - The block size
array - The integer array

Output Parameter

array -The permuted array

Note: The length of the array should be block*N, where N is length provided to the AOCreate*() method that created the AO.

The permutation takes array[i_app] --> array[i_pet], where i_app is the index of 'i' in the application ordering and i_pet is the index of 'i' in the petsc ordering.


application ordering, mapping

See Also

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

Index of all AO routines
Table of Contents for all manual pages
Index of all manual pages