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