Actual source code: pfimpl.h
1: /* $Id: pfimpl.h,v 1.7 2001/01/15 21:49:41 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,Scalar*,Scalar*);
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