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