16 & ( n, neibpetot, neibpe, stack_import, nod_import, &
17 & stack_export, nod_export, &
18 & ws, wr, x, solver_comm,my_rank)
21 implicit real*8 (a-h,o-z)
25 integer(kind=kint ) ,
intent(in) :: N
26 integer(kind=kint ) ,
intent(in) :: NEIBPETOT
27 integer(kind=kint ),
pointer :: NEIBPE (:)
28 integer(kind=kint ),
pointer :: STACK_IMPORT(:)
29 integer(kind=kint ),
pointer :: NOD_IMPORT (:)
30 integer(kind=kint ),
pointer :: STACK_EXPORT(:)
31 integer(kind=kint ),
pointer :: NOD_EXPORT (:)
32 real (kind=
kreal),
dimension(:) ,
intent(inout):: ws
33 real (kind=
kreal),
dimension(:) ,
intent(inout):: wr
34 real (kind=
kreal),
dimension(:) ,
intent(inout):: x
35 integer(kind=kint) ,
intent(in) ::SOLVER_COMM
36 integer(kind=kint) ,
intent(in) :: my_rank
39 integer(kind=kint ),
dimension(:,:),
allocatable :: sta1
40 integer(kind=kint ),
dimension(:,:),
allocatable :: sta2
41 integer(kind=kint ),
dimension(: ),
allocatable :: req1
42 integer(kind=kint ),
dimension(: ),
allocatable :: req2
44 integer(kind=kint ),
save :: NFLAG
48 integer(kind=kint ) :: neib, istart,inum,k,ierr,nreq1,nreq2
52 allocate (sta1(mpi_status_size,neibpetot))
53 allocate (sta2(mpi_status_size,neibpetot))
54 allocate (req1(neibpetot))
55 allocate (req2(neibpetot))
62 istart= stack_export(neib-1)
63 inum = stack_export(neib ) - istart
67 do k= istart+1, istart+inum
68 ws(k)= x(nod_export(k))
70 call mpi_isend (ws(istart+1), inum, mpi_double_precision, &
71 & neibpe(neib), 0, solver_comm, &
80 istart= stack_import(neib-1)
81 inum = stack_import(neib ) - istart
84 call mpi_irecv (wr(istart+1), inum, mpi_double_precision, &
85 & neibpe(neib), 0, solver_comm, &
89 call mpi_waitall (nreq2, req2, sta2, ierr)
92 istart= stack_import(neib-1)
93 inum = stack_import(neib ) - istart
94 do k= istart+1, istart+inum
95 x(nod_import(k))= wr(k)
99 call mpi_waitall (nreq1, req1, sta1, ierr)
101 deallocate (sta1, sta2, req1, req2)
subroutine hecmw_solve_send_recv_11(N, NEIBPETOT, NEIBPE, STACK_IMPORT, NOD_IMPORT, STACK_EXPORT, NOD_EXPORT, WS, WR, X, SOLVER_COMM, my_rank)
integer(kind=4), parameter kreal