#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <mpi.h>
#include "../../util/source/compiler.h"
#include "../../util/source/logfile.h"
#include "../source/mb_cns.h"
#include "mpi_cns.h"
Functions | |
| int | allocate_send_and_receive_buffers (struct block_data *bd) |
| Allocate memory for the MPI send and receive buffers. | |
| int | make_tag (int block_id, int bndry) |
| Returns a tag that should be unique for each block and boundary combination. | |
| int | mpi_exchange_boundary_data (struct global_data *G, struct block_data bd[], int jb, int type_of_copy) |
| Ensure that all boundary data is exchanged between connected boundaries on adjacent blocks. | |
| int | copy_into_send_buffer (struct block_data *bd, int bndry, int type_of_copy) |
| Copy data into the send buffer from the appropriate boundary of the current block. | |
| int | copy_from_receive_buffer (struct block_data *bd, int bndry, int type_of_copy) |
| Copy data from the receive buffer into the appropriate boundary of the current block. | |
Variables | |
| double * | send_buffer [4] |
| double * | receive_buffer [4] |
|
|
Allocate memory for the MPI send and receive buffers.
|
|
||||||||||||||||
|
Copy data from the receive buffer into the appropriate boundary of the current block. See workbook page 33, 18-Jun-02 for details of order.
|
|
||||||||||||||||
|
Copy data into the send buffer from the appropriate boundary of the current block. See workbook page 33, 18-Jun-02 for details of order.
|
1.4.4