xref: /phasta/phSolver/common/phIO.h (revision a7c8a48318c50ba051899642009e1aaa8704f5d3)
1d1293ce9SCameron Smith #ifndef PHSOLVER_PHIO_H
2d1293ce9SCameron Smith #define PHSOLVER_PHIO_H
3d1293ce9SCameron Smith 
4d1293ce9SCameron Smith #include <FCMangle.h>
5d1293ce9SCameron Smith 
6d1293ce9SCameron Smith #define phio_readheader FortranCInterface_GLOBAL_(phio_readheader, PHIO_READHEADER)
7f262839cSCameron Smith #define phio_readdatablock FortranCInterface_GLOBAL_(phio_readdatablock, PHIO_READDATABLOCK)
892bfab9aSCameron Smith #define phio_openfile_read FortranCInterface_GLOBAL_(phio_openfile_read, PHIO_OPENFILE_READ)
992bfab9aSCameron Smith #define phio_openfile_write FortranCInterface_GLOBAL_(phio_openfile_write, PHIO_OPENFILE_WRITE)
1082f286aaSCameron Smith #define phio_restartname FortranCInterface_GLOBAL_(phio_restartname, PHIO_RESTARTNAME)
11*a7c8a483SCameron Smith #define phio_closefile_read FortranCInterface_GLOBAL_(phio_closefile_read, PHIO_CLOSEFILE_READ)
12*a7c8a483SCameron Smith #define phio_closefile_write FortranCInterface_GLOBAL_(phio_closefile_write, PHIO_CLOSEFILE_WRITE)
13d1293ce9SCameron Smith 
14d1293ce9SCameron Smith #ifdef __cplusplus
15d1293ce9SCameron Smith extern "C" {
16d1293ce9SCameron Smith #endif
17d1293ce9SCameron Smith   void phio_readheader(
18d1293ce9SCameron Smith       int* fileDescriptor,
19d1293ce9SCameron Smith       const  char keyphrase[],
20d1293ce9SCameron Smith       void* valueArray,
21d1293ce9SCameron Smith       int*  nItems,
22d1293ce9SCameron Smith       const char  datatype[],
23d1293ce9SCameron Smith       const char  iotype[] );
24f262839cSCameron Smith   void phio_readdatablock(
25f262839cSCameron Smith       int* fileDescriptor,
26f262839cSCameron Smith       const  char keyphrase[],
27f262839cSCameron Smith       void* valueArray,
28f262839cSCameron Smith       int*  nItems,
29f262839cSCameron Smith       const char  datatype[],
30f262839cSCameron Smith       const char  iotype[] );
3192bfab9aSCameron Smith   void phio_openfile_read(
3292bfab9aSCameron Smith       const char filename[],
3392bfab9aSCameron Smith       int* numFiles,
3492bfab9aSCameron Smith       int* fileDescriptor);
3592bfab9aSCameron Smith   void phio_openfile_write(
3692bfab9aSCameron Smith       const char filename[],
3782f286aaSCameron Smith       int* numFiles,
38ade0e30fSCameron Smith       int* numFields,
39ade0e30fSCameron Smith       int* numPPF,
4082f286aaSCameron Smith       int* fileDescriptor);
4182f286aaSCameron Smith   void phio_restartname(int* step, char* filename);
42*a7c8a483SCameron Smith   void phio_closefile_read(int* fileDescriptor);
43*a7c8a483SCameron Smith   void phio_closefile_write(int* fileDescriptor);
44d1293ce9SCameron Smith #ifdef __cplusplus
45d1293ce9SCameron Smith }
46d1293ce9SCameron Smith #endif
47d1293ce9SCameron Smith 
48d1293ce9SCameron Smith #endif
49d1293ce9SCameron Smith 
50