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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ spmd_ialltoallv()

subroutine spmd_ialltoallv ( intent(inout) sendbuf,
intent(inout) recvbuf,
integer, dimension(nb_proc), intent(inout) send_size,
integer, intent(inout) total_send_size,
integer, dimension(nb_proc), intent(inout) sdispls,
integer, intent(inout) total_rcv_size,
integer, dimension(nb_proc), intent(inout) rcv_size,
integer, dimension(nb_proc), intent(inout) rdispls,
integer, intent(inout) request,
integer, intent(inout) comm,
integer, intent(inout) nb_proc )

Definition at line 31 of file spmd_ialltoallv.F.

34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38#include "spmd.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "task_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER, INTENT(inout) :: REQUEST,COMM
47 INTEGER, INTENT(inout) :: TOTAL_SEND_SIZE,TOTAL_RCV_SIZE,NB_PROC
48 INTEGER, DIMENSION(NB_PROC), INTENT(inout) :: SEND_SIZE
49 INTEGER, DIMENSION(NB_PROC), INTENT(inout) :: RCV_SIZE
50 INTEGER, DIMENSION(NB_PROC), INTENT(inout) :: SDISPLS,RDISPLS
51 my_real, DIMENSION(TOTAL_SEND_SIZE), INTENT(inout) :: sendbuf
52 my_real, DIMENSION(TOTAL_RCV_SIZE), INTENT(inout) :: recvbuf
53#ifdef MPI
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER :: error
58! ----------------------------------------
59
60! ------------------------------------------
61! processor P(m) :
62! send buffer
63! to proc : P(1) P(2) P(n)
64! | s1 | s2 | ... | sn |
65! size = N(1) N(2) N(n)
66!
67! rcv buffer
68! from proc : P(1) P(2) P(n)
69! | r1 | r2 | ... | rn |
70! size = M(1) M(2) M(n)
71! ------------------------------------------
72
73! PLMPI uses MPI-2.x version : MPI_IALLTOALLV was introduced in MPI-3.0 version
74 CALL mpi_alltoallv(sendbuf,send_size,sdispls,real,
75 . recvbuf,rcv_size,rdispls,real,
76 . comm,error)
77 request = mpi_request_null
78! ------------------
79#else
80 recvbuf = 0
81#endif
82 RETURN
#define my_real
Definition cppsort.cpp:32