1 subroutine getgbandscatter(me,iunit,im,jm,im_jm,jsta,jsta_2l &
2 ,jend_2u,MPI_COMM_COMP,icnt,idsp,spval,VarName,jpds,jgds,kpds,buf)
7 character(len=20),
intent(in) :: VarName
8 real,
intent(in) :: spval
9 integer,
intent(in) :: me,iunit,im,jm,im_jm,jsta_2l,jend_2u,jsta, &
11 integer,
intent(in) :: ICNT(0:1023), IDSP(0:1023)
12 integer,
intent(in) :: JPDS(200),JGDS(200)
13 integer,
intent(inout) :: KPDS(200)
14 real,
intent(out) :: buf(im,jsta_2l:jend_2u)
15 integer :: kf,k,iret,i,j
21 call getgb(iunit,0,im_jm,0,jpds,jgds,kf &
22 ,k,kpds,kgds,lb,dummy,iret)
24 print*,varname,
" not found in file-Assigned missing values"
35 if(.not.lb(i,j)) dummy(i,j) = spval
41 call mpi_scatterv(dummy(1,1),icnt,idsp,mpi_real &
42 ,buf(1,jsta),icnt(me),mpi_real,0,mpi_comm_comp,iret)