I am trying to use mpi to split computations on n process on a array.
So say process have computed the values for their ranges for eg:
process 1: Array[1 to a1]
process 2: Array[a1+1 to a2]
process 3: Array[a2+1 to a3]
process 4: Array[a3+1 to a4]
What is the best way to send and receive data when it comes to arrays?
Also can the same be applied it the processing of data is in contiguous memory locations? for eg: