#include "petscao.h" PetscErrorCode AOApplicationToPetscPermuteReal(AO ao, PetscInt block, PetscReal array[])Collective on AO
ao | - The Section 1.5 Writing Application Codes with PETSc ordering context | |
block | - The block size | |
array | - The integer 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 Section 1.5 Writing Application Codes with PETSc ordering and i_pet is the index of 'i' in the petsc ordering.