MPIsend sending extra zeroes

MPIsend sending extra zeroes

by Andi Shahaj -
Number of replies: 2

It seems there are extra zeros being added in the send/receive process, the number of zeros is always exactly the size of the vector I'm sending. The data that is supposedly being sent is correct, but when received there's extra numbers appended. Anyone run into the same issue?

In reply to Andi Shahaj

Re: MPIsend sending extra zeroes

by Ruchi Soni -
Yes, I ran into this. If you're receiving an array with a larger size than the array you're sending, the extra elements will be filled with 0. So you might want to check the length of the array you're receiving.
In reply to Ruchi Soni

Re: MPIsend sending extra zeroes

by Andi Shahaj -
I'm using get_count to check the length though, somehow it's always double