15 SUBROUTINE collect (A, B)
18 use ctlblk_mod
, only: num_procs, jsta, icnt, idsp, mpi_comm_comp, im, jm, me
25 real,
intent(in) :: a ( im, jm )
26 real,
intent(out) :: b ( im, jm )
30 if ( num_procs <= 1 )
then
33 call mpi_gatherv(a(1,jsta),icnt(me),mpi_real, &
34 & b,icnt,idsp,mpi_real,0,mpi_comm_comp,ierr)