15 SUBROUTINE collect_loc ( A, B )
18 use ctlblk_mod
, only: num_procs, jsta, icnt, idsp, mpi_comm_comp, im,&
19 jsta_2l, jend_2u, jm, me
24 real,
dimension(im,jsta_2l:jend_2u),
intent(in) :: a
25 real,
dimension(im,jm),
intent(out) :: b
28 if ( num_procs <= 1 )
then
31 call mpi_gatherv(a(1,jsta),icnt(me),mpi_real, &
32 & b,icnt,idsp,mpi_real,0,mpi_comm_comp, ierr )