forked from zuowangda/Fast-Fluid-Dynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcosimulation.c
32 lines (26 loc) · 1.1 KB
/
cosimulation.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "cosimulation.h"
/******************************************************************************
Read the data send from the other program
******************************************************************************/
int read_cosimulation_data(PARA_DATA *para, REAL **var) {
//if(read_cosim_data(para, var)) {
// ffd_log("cosimulation.c: Failed to read data from shared memory.", FFD_ERROR);
// exit(1);
//}
//else
// ffd_log("cosimulation.c: Read data from shared memory.", FFD_NORMAL);
return 0;
} // End of read_cosimulation_data()
/******************************************************************************
Write data that will be read by other program
******************************************************************************/
int write_cosimulation_data(PARA_DATA *para, REAL **var) {
//if(write_cosim_data(para, var)) {
// ffd_log("cosimulation.c: Failed to write data to shared memory.",
// FFD_ERROR);
// exit(1);
//}
//else
// ffd_log("cosimulation.c: Wrote data to shared memory.", FFD_NORMAL);
return 0;
} // End of write_cosimulation_data()