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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_gather_xyz16 (v, num)

Function/Subroutine Documentation

◆ spmd_gather_xyz16()

subroutine spmd_gather_xyz16 ( real, dimension(3,*) v,
integer num )

Definition at line 34 of file spmd_gather_xyz16.F.

35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38 USE spmd_comm_world_mod, ONLY : spmd_comm_world
39#include "implicit_f.inc"
40#include "spmd.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "com01_c.inc"
45#include "com04_c.inc"
46#include "task_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 real
51 . v(3,*)
52 INTEGER NUM
53C-----------------------------------------------
54C L O C A L V A R I A B L E S
55C-----------------------------------------------
56#ifdef MPI
57 INTEGER STATUS(MPI_STATUS_SIZE),IERROR,MSGOFF
58 INTEGER SIZ,MSGTYP,I,K,NG,NREC,MSGOFF2
59
60 DATA msgoff/7033/
61
62C Tableau utilise par proc 0
63 real
64 . xglob(3,num)
65
66 IF (ispmd/=0) THEN
67 msgtyp = msgoff
68 CALL mpi_send(v,6*numels16,mpi_real,it_spmd(1),msgtyp,
69 . spmd_comm_world,ierror)
70
71 ELSE
72
73 CALL write_r_c(v,6*numels16)
74
75 DO i=2,nspmd
76
77C Reception du buffer entier des adresses NODGLOB
78 msgtyp = msgoff
79
80 CALL mpi_probe(it_spmd(i),msgtyp,
81 . spmd_comm_world,status,ierror)
82 CALL mpi_get_count(status,mpi_integer,siz,ierror)
83
84 CALL mpi_recv(xglob,siz,mpi_real,it_spmd(i),msgtyp,
85 . spmd_comm_world,status,ierror)
86
87 CALL write_r_c(xglob,siz)
88 ENDDO
89
90 ENDIF
91
92#endif
93 RETURN
subroutine mpi_recv(buf, cnt, datatype, source, tag, comm, status, ierr)
Definition mpi.f:461
subroutine mpi_get_count(status, datatype, cnt, ierr)
Definition mpi.f:296
subroutine mpi_send(buf, cnt, datatype, dest, tag, comm, ierr)
Definition mpi.f:480
subroutine mpi_probe(source, tag, comm, status, ierr)
Definition mpi.f:449
void write_r_c(float *w, int *len)