SCOREC core
Parallel unstructured mesh tools
phstream.h
Go to the documentation of this file.
1 #ifndef PHSTREAM_H_
2 #define PHSTREAM_H_
3 #include <stdio.h>
4 #include <PCU.h>
5 
6 
14 typedef struct RStream* rstream;
15 typedef struct GRStream* grstream;
17 rstream makeRStream(pcu::PCU *PCUObj);
19 void clearRStream(rstream rs, pcu::PCU *PCUObj);
21 void destroyRStream(rstream rs, pcu::PCU *PCUObj);
22 
24 grstream makeGRStream(pcu::PCU *PCUObj);
26 void clearGRStream(grstream grs, pcu::PCU *PCUObj);
28 void destroyGRStream(grstream grs, pcu::PCU *PCUObj);
29 
31 FILE* openRStreamRead(rstream rs, pcu::PCU *PCUObj);
33 FILE* openRStreamWrite(rstream rs, pcu::PCU *PCUObj);
34 
36 FILE* openGRStreamRead(grstream grs, const char* named, pcu::PCU *PCUObj);
38 FILE* openGRStreamWrite(grstream grs, const char* named, pcu::PCU *PCUObj);
39 
41 void attachRStream(grstream grs, rstream rs, pcu::PCU *PCUObj);
42 #endif
The C++ interface to the Parallel Control Unit.
The Parallel Contrul Unit class encapsulates parallel communication.
Definition: PCU.h:26
FILE * openGRStreamRead(grstream grs, const char *named, pcu::PCU *PCUObj)
open named stream in geom-restart stream for reading
FILE * openRStreamWrite(rstream rs, pcu::PCU *PCUObj)
open restart stream for writing
void clearGRStream(grstream grs, pcu::PCU *PCUObj)
clear geom-restart stream
FILE * openGRStreamWrite(grstream grs, const char *named, pcu::PCU *PCUObj)
open named stream in geom-restart stream for writing
FILE * openRStreamRead(rstream rs, pcu::PCU *PCUObj)
open restart stream for reading
void destroyRStream(rstream rs, pcu::PCU *PCUObj)
detach output stream
void attachRStream(grstream grs, rstream rs, pcu::PCU *PCUObj)
dev function
grstream makeGRStream(pcu::PCU *PCUObj)
make geom-restart stream
void destroyGRStream(grstream grs, pcu::PCU *PCUObj)
destroy geom-restart stream
rstream makeRStream(pcu::PCU *PCUObj)
make restart stream
void clearRStream(rstream rs, pcu::PCU *PCUObj)
clear restart stream