Actual source code: pfimpl.h
1: /* $Id: pfimpl.h,v 1.8 2001/08/06 21:19:07 bsmith Exp $ */
3: #ifndef _PFIMPL
4: #define _PFIMPL
6: #include petscpf.h
8: typedef struct _PFOps *PFOps;
9: struct _PFOps {
10: int (*apply)(void*,int,PetscScalar*,PetscScalar*);
11: int (*applyvec)(void*,Vec,Vec);
12: int (*destroy)(void*);
13: int (*view)(void*,PetscViewer);
14: int (*setfromoptions)(PF);
15: };
17: struct _p_PF {
18: PETSCHEADER(struct _PFOps)
19: int dimin,dimout; /* dimension of input and output spaces */
20: void *data;
21: };
23: #endif