#include "nbc.h" #include int main(int argc, char **argv) { NBC_Handle handle1, handle2; int rank, i,j, res, p; int *buf1, *buf2, *ptr; MPI_Init(&argc, &argv); /* shut up compiler */ handle1 = handle2; handle2 = handle1; res = MPI_Comm_size(MPI_COMM_WORLD, &p); res = MPI_Comm_rank(MPI_COMM_WORLD, &rank); if(res != MPI_SUCCESS) printf("Error in MPI_Comm_rank!\n"); buf1=malloc(2*p*sizeof(int)); buf2=malloc(2*p*sizeof(int)); for (i=0; i<1; i++) { for(j=0;j