3 readonly CProxy_Main mainProxy;
4 readonly int arrayDimX;
5 readonly int arrayDimY;
6 readonly int arrayDimZ;
7 readonly int blockDimX;
8 readonly int blockDimY;
9 readonly int blockDimZ;
11 readonly int num_chare_x;
12 readonly int num_chare_y;
13 readonly int num_chare_z;
16 entry Main(CkArgMsg *m);
17 entry [reductiontarget] void report();
22 entry void begin_iteration(void);
23 entry void receiveGhosts(int iter, int dir, int height, int width,
24 double ghosts[height*width]);
26 entry [reductiontarget] void doStep() {
27 serial "begin_iteration" {
30 for(imsg = 0; imsg < 6; imsg++) {
31 // "iterations" keeps track of messages across steps
32 when receiveGhosts[iterations] (int iter, int dir, int height,
33 int width, double ghosts[height*width])
34 serial "process_ghosts" {
35 processGhosts(dir, height, width, ghosts);