xref: /phasta/phSolver/common/phstreamEmpty/phstreamEmpty.cc (revision 1e99f302ca5103688ae35115c2fefb7cfa6714f1)
1 #include "phstream.h"
2 void* fail(const char* f) {
3   fprintf(stderr,
4     "ERROR: function %s is disabled - compile with chefPhasta\n", f);
5   return NULL;
6 }
7 rstream makeRStream() {
8   return (rstream)fail(__func__);
9 }
10 void clearRStream(rstream rs) {
11   fail(__func__);
12 }
13 void destroyRStream(rstream rs) {
14   fail(__func__);
15 }
16 
17 grstream makeGRStream() {
18   return (grstream)fail(__func__);
19 }
20 void clearGRStream(grstream grs) {
21   fail(__func__);
22 }
23 void destroyGRStream(grstream grs) {
24   fail(__func__);
25 }
26 
27 FILE* openRStreamRead(rstream rs) {
28   return (FILE*)fail(__func__);
29 }
30 FILE* openRStreamWrite(rstream rs) {
31   return (FILE*)fail(__func__);
32 }
33 
34 FILE* openGRStreamRead(grstream grs, const char* named) {
35   return (FILE*)fail(__func__);
36 }
37 FILE* openGRStreamWrite(grstream grs, const char* named) {
38   return (FILE*)fail(__func__);
39 }
40 
41 void attachRStream(grstream grs, rstream rs) {
42   fail(__func__);
43 }
44