OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_glob_imax9.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_glob_imax9 (v, len)

Function/Subroutine Documentation

◆ spmd_glob_imax9()

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

Definition at line 35 of file spmd_glob_imax9.F.

36C gather tableau V de taille LEN de type integer
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40 USE spmd_comm_world_mod, ONLY : spmd_comm_world
41#include "implicit_f.inc"
42C-----------------------------------------------------------------
43C M e s s a g e P a s s i n g
44C-----------------------------------------------
45#include "spmd.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "task_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER LEN, V(LEN)
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57#ifdef MPI
58 INTEGER MSGOFF,MSGTYP,INFO,I,K,ATID,ATAG,ALEN,IERROR,
59 . VTMP(LEN),STATUS(MPI_STATUS_SIZE)
60C-----------------------------------------------
61C S o u r c e L i n e s
62C-----------------------------------------------
63 IF (len > 0) THEN
64 CALL mpi_reduce(v,vtmp,len,
65 . mpi_integer,mpi_max,it_spmd(1),
66 . spmd_comm_world,ierror)
67 ENDIF
68 IF (ispmd==0) THEN
69 DO i=1,len
70 v(i) = vtmp(i)
71 END DO
72 ENDIF
73C
74#endif
75 RETURN
subroutine mpi_reduce(sendbuf, recvbuf, cnt, datatype, op, root, comm, ierr)
Definition mpi.f:120