summaryrefslogtreecommitdiff
path: root/src/include/IOMethods.h
blob: 53952b1ee9581be85cccbbc66217c0df8fb63976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct IOMethod
{
  int    (*OutputGH)(cGH *);
  int    (*OutputVarAs)(cGH *, const char *, const char *);
  int    (*TriggerOutput)(cGH *, int);
  int    (*TimeToOutput)(cGH *,int);
};

int CCTK_RegisterIOMethod(const char *name);
int CCTK_RegisterIOMethodOutputGH(int handle, int (*func)(cGH *));
int CCTK_RegisterIOMethodTimeToOutput(int handle, int (*func)(cGH *, int));
int CCTK_RegisterIOMethodTriggerOutput(int handle, int (*func)(cGH *, int));
int CCTK_RegisterIOMethodOutputVarAs(int handle, int (*func)(cGH *,
                                     const char *,const char *));