I\'m trying to read a matrix in chunks, scatter a chunk and then read the next chunk. I have written the following function
void readmatrix(int m,int n, double local_