xref: /petsc/src/vec/pf/pfimpl.h (revision afcb2eb581850588619400ff311bed89835ec555)
1292f8084SBarry Smith 
2519f805aSKarl Rupp #if !defined(_PFIMPL)
3292f8084SBarry Smith #define _PFIMPL
4292f8084SBarry Smith 
5c6db04a5SJed Brown #include <petscpf.h>
6*afcb2eb5SJed Brown #include <petsc-private/petscimpl.h>
7292f8084SBarry Smith 
8292f8084SBarry Smith typedef struct _PFOps *PFOps;
9292f8084SBarry Smith struct _PFOps {
10dd394643SJed Brown   PetscErrorCode (*apply)(void*,PetscInt,const PetscScalar*,PetscScalar*);
11292f8084SBarry Smith   PetscErrorCode (*applyvec)(void*,Vec,Vec);
12292f8084SBarry Smith   PetscErrorCode (*destroy)(void*);
13292f8084SBarry Smith   PetscErrorCode (*view)(void*,PetscViewer);
14292f8084SBarry Smith   PetscErrorCode (*setfromoptions)(PF);
15292f8084SBarry Smith };
16292f8084SBarry Smith 
17292f8084SBarry Smith struct _p_PF {
18011f5a45SSatish Balay   PETSCHEADER(struct _PFOps);
19292f8084SBarry Smith   PetscInt dimin,dimout;             /* dimension of input and output spaces */
20292f8084SBarry Smith   void     *data;
21292f8084SBarry Smith };
22292f8084SBarry Smith 
23292f8084SBarry Smith #endif
24