mpi - Error when making a fortran MPI_Allgather code -


i have fortran code compiles okay, returns error when executing mpi_allgather routine

call mpi_allgather(rank, 1, mpi_integer,                                allranks(0:np-1), np, mpi_integer, mpi_comm_world, erro) 

rank integer variable, allranks integer array np positions labeled 0 np-1

the error is

malloc.c:4630: _int_malloc: assertion `(unsigned long)(size) >= (unsigned long)(nb)' failed. 

does have idea of cause of error? if so, how can solve this?

the 5th argument states number of elements receive process. in case should 1. recvcount should state how many entries expect each process. mpi standard states:

the type signature associated sendcount, sendtype @ process must equal type signature associated recvcount, recvtype @ other process.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -