Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Anders_S_1
Beginner
188 Views

Broadcasting multidimensional arrays

Hi,

I am using MPI for parallelization. I want to broadcast a multidimensional array. Is there today a way to do this directly?

If not, is it possible to broadcast by using DO-loops?

Example

The integer array a(m,n) shall be broadcasted. Will this work?

DO i=1,m

  CALL MPI_BCAST(a(i,1:n),n,MPI_INTEGER8,0,MPI_COMM_WORLD,ierr)

ENDDO

If yes, can I broadcast in the same way for dimensions above 2?

Best regards

Anders S

0 Kudos
0 Replies
Reply