xref: /phasta/phSolver/common/phio_sync.h (revision 7acde132a6def0fe2daaec0d1a712dff0e5c6636)
1064bab1dSCameron Smith #ifndef PHSOLVER_PHIO_SYNC_H
2064bab1dSCameron Smith #define PHSOLVER_PHIO_SYNC_H
39a3ccc9bSCameron Smith #include "phio_base.h"
49a3ccc9bSCameron Smith struct syncio_file : phio_file {
5ab645d52SCameron Smith   int nfiles;
6ab645d52SCameron Smith   int nfields;
7ab645d52SCameron Smith   int nppf;
8ab645d52SCameron Smith };
9ab645d52SCameron Smith typedef struct syncio_file* sync_fp;
10ab645d52SCameron Smith void sync_openfile_read(
11ab645d52SCameron Smith     const char filename[],
12ab645d52SCameron Smith     phio_fp fileDescriptor);
13ab645d52SCameron Smith void sync_openfile_write(
14ab645d52SCameron Smith     const char filename[],
15ab645d52SCameron Smith     phio_fp fileDescriptor);
16ab645d52SCameron Smith void sync_closefile(
17ab645d52SCameron Smith     phio_fp fileDescriptor);
18064bab1dSCameron Smith void sync_readheader(
19064bab1dSCameron Smith     int* fileDescriptor,
20064bab1dSCameron Smith     const  char keyphrase[],
21064bab1dSCameron Smith     void* valueArray,
22064bab1dSCameron Smith     int*  nItems,
23064bab1dSCameron Smith     const char  datatype[],
24064bab1dSCameron Smith     const char  iotype[] );
25064bab1dSCameron Smith void sync_writeheader(
26064bab1dSCameron Smith     const int* fileDescriptor,
27064bab1dSCameron Smith     const char keyphrase[],
28064bab1dSCameron Smith     const void* valueArray,
29064bab1dSCameron Smith     const int* nItems,
30064bab1dSCameron Smith     const int* ndataItems,
31064bab1dSCameron Smith     const char datatype[],
32064bab1dSCameron Smith     const char iotype[] );
33064bab1dSCameron Smith void sync_readdatablock(
34064bab1dSCameron Smith     int* fileDescriptor,
35064bab1dSCameron Smith     const  char keyphrase[],
36064bab1dSCameron Smith     void* valueArray,
37064bab1dSCameron Smith     int*  nItems,
38064bab1dSCameron Smith     const char  datatype[],
39064bab1dSCameron Smith     const char  iotype[] );
40064bab1dSCameron Smith void sync_writedatablock(
41064bab1dSCameron Smith     const int* fileDescriptor,
42064bab1dSCameron Smith     const char keyphrase[],
43064bab1dSCameron Smith     const void* valueArray,
44064bab1dSCameron Smith     const int* nItems,
45064bab1dSCameron Smith     const char datatype[],
46064bab1dSCameron Smith     const char iotype[]);
47*a93de25bSCameron Smith void sync_constructname(
48*a93de25bSCameron Smith     const char* in,
49*a93de25bSCameron Smith     char* out);
50064bab1dSCameron Smith #endif
51