OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_ialltoallv_int.F File Reference
#include "implicit_f.inc"
#include "spmd.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_ialltoallv_int (sendbuf, recvbuf, send_size, total_send_size, sdispls, total_rcv_size, rcv_size, rdispls, request, comm, nb_proc)

Function/Subroutine Documentation

◆ spmd_ialltoallv_int()

subroutine spmd_ialltoallv_int ( integer, dimension(total_send_size), intent(in) sendbuf,
integer, dimension(total_rcv_size), intent(out) recvbuf,
integer, dimension(nb_proc), intent(in) send_size,
integer, intent(in) total_send_size,
integer, dimension(nb_proc), intent(in) sdispls,
integer, intent(in) total_rcv_size,
integer, dimension(nb_proc), intent(in) rcv_size,
integer, dimension(nb_proc), intent(in) rdispls,
integer, intent(in) request,
integer, intent(in) comm,
integer, intent(in) nb_proc )

Definition at line 32 of file spmd_ialltoallv_int.F.

35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------------------------
40C M e s s a g e P a s s i n g
41C-----------------------------------------------
42#include "spmd.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER, INTENT(in) :: REQUEST,COMM
47 INTEGER, INTENT(in) :: TOTAL_SEND_SIZE,TOTAL_RCV_SIZE,NB_PROC
48 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: SEND_SIZE
49 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: RCV_SIZE
50 INTEGER, DIMENSION(NB_PROC), INTENT(in) :: SDISPLS,RDISPLS
51 INTEGER, DIMENSION(TOTAL_SEND_SIZE), INTENT(in) :: SENDBUF
52 INTEGER, DIMENSION(TOTAL_RCV_SIZE), INTENT(out) :: RECVBUF
53
54#ifdef MPI
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER :: error
59! ----------------------------------------
60
61! ------------------------------------------
62! processor P(m) :
63! send buffer
64! to proc : P(1) P(2) P(n)
65! | s1 | s2 | ... | sn |
66! size = N(1) N(2) N(n)
67!
68! rcv buffer
69! from proc : P(1) P(2) P(n)
70! | r1 | r2 | ... | rn |
71! size = M(1) M(2) M(n)
72! ------------------------------------------
73
74! PLMPI uses MPI-2.x version : MPI_IALLTOALLV was introduced in MPI-3.0 version
75#if _PLMPI
76! ------------------
77! mpi comm alltoall with different amount of data
78 CALL mpi_alltoallv(sendbuf,send_size,sdispls,mpi_integer,
79 . recvbuf,rcv_size,rdispls,mpi_integer,
80 . comm,error)
81! ------------------
82#else
83! ------------------
84! mpi comm alltoall with different amount of data
85 CALL mpi_ialltoallv(sendbuf,send_size,sdispls,mpi_integer,
86 . recvbuf,rcv_size,rdispls,mpi_integer,
87 . comm,request,error)
88! ------------------
89#endif
90#else
91 recvbuf = 0
92#endif
93 RETURN