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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_allglob_isum9 (v, len)

Function/Subroutine Documentation

◆ spmd_allglob_isum9()

subroutine spmd_allglob_isum9 ( integer, dimension(len) v,
integer len )

Definition at line 45 of file spmd_allglob_isum9.F.

46C gather tableau V de taille LEN de type integer et broadcast sur tous les processeurs
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50 USE spmd_comm_world_mod, ONLY : spmd_comm_world
51#include "implicit_f.inc"
52C-----------------------------------------------------------------
53C M e s s a g e P a s s i n g
54C-----------------------------------------------
55#include "spmd.inc"
56C-----------------------------------------------
57C D u m m y A r g u m e n t s
58C-----------------------------------------------
59 INTEGER LEN, V(LEN)
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63#ifdef MPI
64 INTEGER MSGOFF,MSGTYP,INFO,I,K,ATID,ATAG,ALEN,IERROR,
65 . VTMP(LEN),STATUS(MPI_STATUS_SIZE)
66C-----------------------------------------------
67C S o u r c e L i n e s
68C-----------------------------------------------
69 IF (len > 0) THEN
70 CALL mpi_allreduce(v,vtmp,len,
71 . mpi_integer,mpi_sum,
72 . spmd_comm_world,ierror)
73 DO i=1,len
74 v(i) = vtmp(i)
75 END DO
76 ENDIF
77C
78#endif
79 RETURN
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)
Definition mpi.f:103