Segmentation Fault using MPI_Sendrecv with a 2D contiguous array
问题 my problem is quite simple. When using MPI_Sendrecv, its generates systematically a segfault. I had the same problem earlier with the use of 2D array and a basic MPI_Send but finally solved it. As I tried the same solution that work in the last case, this did not change anything. Thus I'm asking help ! So basically, I allocate all my matrix by this code : double** allocateMatrix(int rows, int cols) { double **M; // Row pointer double *Mdata; // Where data will be actually storde M = calloc