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