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

Go to the source code of this file.

Functions/Subroutines

subroutine rad_spmd_recv (a, siz, ispmd, it_spmd, msgtag, intsize)

Function/Subroutine Documentation

◆ rad_spmd_recv()

subroutine rad_spmd_recv ( integer, dimension(*), intent(inout) a,
integer siz,
integer ispmd,
integer, dimension(*) it_spmd,
integer msgtag,
integer intsize )

Definition at line 33 of file rad_spmd_recv.F.

34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37 use spmd_comm_world_mod, only: spmd_comm_world
38 implicit none
39C#include "implicit_f.inc"
40C-----------------------------------------------
41C M e s s a g e P a s s i n g
42C-----------------------------------------------
43#include "spmd.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER SIZ,ISPMD,IT_SPMD(*),MSGTAG,INTSIZE
48 INTEGER, INTENT(INOUT) :: A(*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52#ifdef MPI
53 INTEGER INFO,BUFSIZMAX,ADD,LEN,SIZ_I,
54 . ATID,ATAG,ALEN
55 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
56C segment de memoire partagee doit etre superieur a 10 MB
57 DATA bufsizmax/10000000/
58C-----------------------------------------------
59C S o u r c e L i n e s
60C-----------------------------------------------
61 add = 1
62 siz_i = siz
63 1 len = min(siz_i,bufsizmax)
64
65 CALL mpi_recv(a(add),len,mpi_byte,it_spmd(ispmd+1),msgtag,
66 . spmd_comm_world,status,ierror)
67 CALL mpi_send(a,0,mpi_byte,it_spmd(ispmd+1),msgtag,
68 . spmd_comm_world,ierror)
69
70 add = add + len/intsize
71 siz_i = siz_i - len
72 IF (siz_i>0) GO TO 1
73#endif
74 RETURN
#define min(a, b)
Definition macros.h:20
subroutine mpi_recv(buf, cnt, datatype, source, tag, comm, status, ierr)
Definition mpi.f:461
subroutine mpi_send(buf, cnt, datatype, dest, tag, comm, ierr)
Definition mpi.f:480