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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_h3d_gather_i (v, len, vp0, lenp0)

Function/Subroutine Documentation

◆ spmd_h3d_gather_i()

subroutine spmd_h3d_gather_i ( integer, dimension(len) v,
integer len,
integer, dimension(lenp0) vp0,
integer lenp0 )

Definition at line 31 of file spmd_h3d_gather_i.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35 USE spmd_comm_world_mod, ONLY : spmd_comm_world
36#include "implicit_f.inc"
37#include "spmd.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "task_c.inc"
42#include "com01_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER LEN,LENP0
47 integer
48 . v(len),vp0(lenp0)
49
50C-----------------------------------------------
51C L O C A L V A R I A B L E S
52C-----------------------------------------------
53 INTEGER IAD
54#ifdef MPI
55 INTEGER STATUS(MPI_STATUS_SIZE),IERROR,
56 . MSGTYP,I,SIZ,LENP(NSPMD),DISP(NSPMD)
57
58
59
60
61 CALL mpi_gather(
62 s len ,1 ,mpi_integer,
63 r lenp ,1 ,mpi_integer,it_spmd(1),
64 g spmd_comm_world,ierror)
65C
66 iad=0
67 IF(ispmd == 0)THEN
68 DO i=1,nspmd
69 disp(i) = iad
70 iad = iad+lenp(i)
71 END DO
72 END IF
73C
74 CALL mpi_gatherv(
75 s v ,len ,mpi_integer,
76 r vp0 ,lenp ,disp,mpi_integer,it_spmd(1),
77 g spmd_comm_world,ierror)
78#endif
79 RETURN
subroutine mpi_gather(sendbuf, cnt, datatype, recvbuf, reccnt, rectype, root, comm, ierr)
Definition mpi.f:56
subroutine mpi_gatherv(sendbuf, cnt, datatype, recvbuf, reccnt, displs, rectype, root, comm, ierr)
Definition mpi.f:76