OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_fvb_asub1.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_fvb_asub1 (ii, fvpbuf)

Function/Subroutine Documentation

◆ spmd_fvb_asub1()

subroutine spmd_fvb_asub1 ( integer ii,
integer, dimension(*) fvpbuf )

Definition at line 32 of file spmd_fvb_asub1.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE fvbag_mod
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 II, FVPBUF(*)
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57#ifdef MPI
58 INTEGER I, PMAIN, J, ITAG, MSGOFF, STAT(MPI_STATUS_SIZE),
59 . IERR, NPOLH_ANIM, IADP
60C-----------------------------------------------
61 DATA msgoff /7051/
62C-----------------------------------------------
63C
64 iadp=0
65 DO i=1,nfvbag
66 ii=ii+1
67 pmain=fvspmd(i)%PMAIN
68 IF (ispmd==0) THEN
69 IF (ispmd==pmain-1) THEN
70 DO j=1,fvdata(i)%NPOLH_ANIM
71 fvpbuf(iadp+j)=ii-1
72 ENDDO
73 iadp=iadp+fvdata(i)%NPOLH_ANIM
74 ELSE
75 itag=msgoff
76 CALL mpi_recv(npolh_anim, 1, mpi_integer,
77 . it_spmd(pmain), itag, spmd_comm_world,
78 . stat, ierr)
79 DO j=1,npolh_anim
80 fvpbuf(iadp+j)=ii-1
81 ENDDO
82 iadp=iadp+npolh_anim
83 ENDIF
84 ELSE
85 IF (ispmd==pmain-1) THEN
86 itag=msgoff
87 CALL mpi_send(fvdata(i)%NPOLH_ANIM, 1, mpi_integer,
88 . it_spmd(1), itag, spmd_comm_world,
89 . ierr)
90 ENDIF
91 ENDIF
92 ENDDO
93C
94#endif
95 RETURN
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
type(fvbag_spmd), dimension(:), allocatable fvspmd
Definition fvbag_mod.F:129
type(fvbag_data), dimension(:), allocatable fvdata
Definition fvbag_mod.F:128
integer nfvbag
Definition fvbag_mod.F:127