1 /* $Id: ao.h,v 1.4 1997/09/15 16:27:37 bsmith Exp bsmith $ */ 2 3 /* 4 An application ordering is mapping between application-centric 5 ordering (the ordering that is "natural" to the application) and 6 the parallel ordering that PETSc uses. 7 */ 8 #if !defined(__AO_PACKAGE) 9 #define __AO_PACKAGE 10 #include "is.h" 11 12 typedef enum {AO_BASIC=0, AO_ADVANCED=1} AOType; 13 14 #define AO_COOKIE PETSC_COOKIE+20 15 16 typedef struct _p_AO* AO; 17 18 extern int AOCreateBasic(MPI_Comm,int,int*,int*,AO*); 19 extern int AOCreateBasicIS(MPI_Comm,IS,IS,AO*); 20 21 extern int AOPetscToApplication(AO,int,int*); 22 extern int AOApplicationToPetsc(AO,int,int*); 23 extern int AOPetscToApplicationIS(AO,IS); 24 extern int AOApplicationToPetscIS(AO,IS); 25 26 extern int AODestroy(AO); 27 extern int AOView(AO,Viewer); 28 29 /* ----------------------------------------------------*/ 30 31 typedef enum {AODATA_BASIC=0, AODATA_ADVANCED=1} AODataType; 32 33 #define AODATA_COOKIE PETSC_COOKIE+24 34 35 typedef struct _p_AOData* AOData; 36 37 extern int AODataCreateBasic(MPI_Comm,int, int, int *,void *,PetscDataType,AOData*); 38 extern int AODataView(AOData,Viewer); 39 extern int AODataDestroy(AOData); 40 41 42 #endif 43 44 45