1*0752156aSBarry Smith /* $Id: ao.h,v 1.4 1997/09/15 16:27:37 bsmith Exp bsmith $ */ 27588ac45SBarry Smith 3230e2716SBarry Smith /* 4230e2716SBarry Smith An application ordering is mapping between application-centric 57588ac45SBarry Smith ordering (the ordering that is "natural" to the application) and 67588ac45SBarry Smith the parallel ordering that PETSc uses. 77588ac45SBarry Smith */ 87588ac45SBarry Smith #if !defined(__AO_PACKAGE) 97588ac45SBarry Smith #define __AO_PACKAGE 107588ac45SBarry Smith #include "is.h" 117588ac45SBarry Smith 12*0752156aSBarry Smith typedef enum {AO_BASIC=0, AO_ADVANCED=1} AOType; 137588ac45SBarry Smith 147588ac45SBarry Smith #define AO_COOKIE PETSC_COOKIE+20 157588ac45SBarry Smith 161ac94ccfSSatish Balay typedef struct _p_AO* AO; 177588ac45SBarry Smith 187588ac45SBarry Smith extern int AOCreateBasic(MPI_Comm,int,int*,int*,AO*); 197588ac45SBarry Smith extern int AOCreateBasicIS(MPI_Comm,IS,IS,AO*); 207588ac45SBarry Smith 217588ac45SBarry Smith extern int AOPetscToApplication(AO,int,int*); 227588ac45SBarry Smith extern int AOApplicationToPetsc(AO,int,int*); 237588ac45SBarry Smith extern int AOPetscToApplicationIS(AO,IS); 247588ac45SBarry Smith extern int AOApplicationToPetscIS(AO,IS); 257588ac45SBarry Smith 267588ac45SBarry Smith extern int AODestroy(AO); 277588ac45SBarry Smith extern int AOView(AO,Viewer); 287588ac45SBarry Smith 29376ee591SBarry Smith /* ----------------------------------------------------*/ 30376ee591SBarry Smith 31*0752156aSBarry Smith typedef enum {AODATA_BASIC=0, AODATA_ADVANCED=1} AODataType; 32376ee591SBarry Smith 33*0752156aSBarry Smith #define AODATA_COOKIE PETSC_COOKIE+24 34376ee591SBarry Smith 35*0752156aSBarry Smith typedef struct _p_AOData* AOData; 36*0752156aSBarry Smith 37*0752156aSBarry Smith extern int AODataCreateBasic(MPI_Comm,int, int, int *,void *,PetscDataType,AOData*); 38*0752156aSBarry Smith extern int AODataView(AOData,Viewer); 39*0752156aSBarry Smith extern int AODataDestroy(AOData); 40376ee591SBarry Smith 41376ee591SBarry Smith 427588ac45SBarry Smith #endif 437588ac45SBarry Smith 44230e2716SBarry Smith 45