xref: /phasta/phSolver/common/phio_sync.h (revision 16223cb9c3f88b34f2cb94151b5cf5ffc1aac5e2)
1 #ifndef PHSOLVER_PHIO_SYNC_H
2 #define PHSOLVER_PHIO_SYNC_H
3 typedef struct phio_file* phio_fp;
4 void sync_readheader(
5     int* fileDescriptor,
6     const  char keyphrase[],
7     void* valueArray,
8     int*  nItems,
9     const char  datatype[],
10     const char  iotype[] );
11 void sync_writeheader(
12     const int* fileDescriptor,
13     const char keyphrase[],
14     const void* valueArray,
15     const int* nItems,
16     const int* ndataItems,
17     const char datatype[],
18     const char iotype[] );
19 void sync_readdatablock(
20     int* fileDescriptor,
21     const  char keyphrase[],
22     void* valueArray,
23     int*  nItems,
24     const char  datatype[],
25     const char  iotype[] );
26 void sync_writedatablock(
27     const int* fileDescriptor,
28     const char keyphrase[],
29     const void* valueArray,
30     const int* nItems,
31     const char datatype[],
32     const char iotype[]);
33 void sync_openfile_read(
34     const char filename[],
35     int* numFiles,
36     phio_fp* fileDescriptor);
37 void sync_openfile_write(
38     const char filename[],
39     int* numFiles,
40     int* numFields,
41     int* numPPF,
42     phio_fp* fileDescriptor);
43 void sync_closefile_read(phio_fp fileDescriptor);
44 void sync_closefile_write(phio_fp fileDescriptor);
45 #endif
46