I mpi program like this:
........
MPI_Status status1;
.......
MPI_Recv(rb,buf_size,MPI_INT,prcid,1,MPI_COMM_WORLD,&status1);
.....
this program can run well. but when i change it like this:
........
MPI_Status* status2;
.......
MPI_Recv(rb,buf_size,MPI_INT,prcid,1,MPI_COMM_WORLD,status2);
.....
it can't run well and gets an error:
erro: Segmentation fault (signal 11)
Doesn't &status1 equal status2?
what is the difference between them ? thank you !