1064bab1dSCameron Smith #ifndef PHSOLVER_PHIO_SYNC_H 2064bab1dSCameron Smith #define PHSOLVER_PHIO_SYNC_H 3064bab1dSCameron Smith typedef struct phio_file* phio_fp; 4*ab645d52SCameron Smith struct syncio_file { 5*ab645d52SCameron Smith phio_fp base; 6*ab645d52SCameron Smith int nfiles; 7*ab645d52SCameron Smith int nfields; 8*ab645d52SCameron Smith int nppf; 9*ab645d52SCameron Smith }; 10*ab645d52SCameron Smith typedef struct syncio_file* sync_fp; 11*ab645d52SCameron Smith void sync_openfile_read( 12*ab645d52SCameron Smith const char filename[], 13*ab645d52SCameron Smith phio_fp fileDescriptor); 14*ab645d52SCameron Smith void sync_openfile_write( 15*ab645d52SCameron Smith const char filename[], 16*ab645d52SCameron Smith phio_fp fileDescriptor); 17*ab645d52SCameron Smith void sync_closefile( 18*ab645d52SCameron Smith phio_fp fileDescriptor); 19064bab1dSCameron Smith void sync_readheader( 20064bab1dSCameron Smith int* fileDescriptor, 21064bab1dSCameron Smith const char keyphrase[], 22064bab1dSCameron Smith void* valueArray, 23064bab1dSCameron Smith int* nItems, 24064bab1dSCameron Smith const char datatype[], 25064bab1dSCameron Smith const char iotype[] ); 26064bab1dSCameron Smith void sync_writeheader( 27064bab1dSCameron Smith const int* fileDescriptor, 28064bab1dSCameron Smith const char keyphrase[], 29064bab1dSCameron Smith const void* valueArray, 30064bab1dSCameron Smith const int* nItems, 31064bab1dSCameron Smith const int* ndataItems, 32064bab1dSCameron Smith const char datatype[], 33064bab1dSCameron Smith const char iotype[] ); 34064bab1dSCameron Smith void sync_readdatablock( 35064bab1dSCameron Smith int* fileDescriptor, 36064bab1dSCameron Smith const char keyphrase[], 37064bab1dSCameron Smith void* valueArray, 38064bab1dSCameron Smith int* nItems, 39064bab1dSCameron Smith const char datatype[], 40064bab1dSCameron Smith const char iotype[] ); 41064bab1dSCameron Smith void sync_writedatablock( 42064bab1dSCameron Smith const int* fileDescriptor, 43064bab1dSCameron Smith const char keyphrase[], 44064bab1dSCameron Smith const void* valueArray, 45064bab1dSCameron Smith const int* nItems, 46064bab1dSCameron Smith const char datatype[], 47064bab1dSCameron Smith const char iotype[]); 48064bab1dSCameron Smith #endif 49