Re: [OMPI users] Trouble with MPI_Recv not filling buffer

2013-07-08 Thread Jeff Squyres (jsquyres)
On Jul 6, 2013, at 2:33 PM, Patrick Brückner wrote: > data p; > p.collection = malloc(sizeof(int)*N); > > printf("[%d] before receiving, data id %d at %d with direction > %d\n",me,p.id,p.position,p.direction); > > MPI_Status data_status; > MPI_Recv(&p,1,MPI_data,MPI_ANY_SOURCE,99,MPI_COMM_WOR

[OMPI users] Trouble with MPI_Recv not filling buffer

2013-07-06 Thread Patrick Brückner
Hello, I am currently learning MPI and there's this problem that I have been dealing with very long now. I am trying to receive a struct, and in some very specific cases (when I run with 2/3/4 instances and only calculating exactly the same number of data). For some weird reason it seems to w