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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_anim_ply_init ()

Function/Subroutine Documentation

◆ spmd_anim_ply_init()

subroutine spmd_anim_ply_init

Definition at line 32 of file spmd_anim_ply_init.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE plyxfem_mod
37 USE spmd_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
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 "com01_c.inc"
50#include "param_c.inc"
51#include "task_c.inc"
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55#ifdef MPI
56 INTEGER, DIMENSION(:),ALLOCATABLE :: PLYNODTAG,SENDBUF,RECBUF
57 INTEGER MAXSENDSZ,RECSZ,PLYSZ
58 INTEGER I,J,P,ND, ITAG, IDCMAXP(NSPMD-1), REQ(NSPMD-1),NODCOUNT
59 INTEGER MSGOFF,MSGOFF2,STAT(MPI_STATUS_SIZE,NSPMD-1), IERR
60C-----------------------------------------------
61 DATA msgoff/7054/
62C-----------------------------------------------
63C
64C Allocate Global PLY Structure
65C
66 IF (ispmd==0)THEN
67 ALLOCATE (plyiadnod(nplymax,nspmd))
68 plyiadnod = 0
69 ELSE
70 ALLOCATE (plyiadnod(1,1))
71 ENDIF
72 plyiadnod = 0
73
74
75C Need to rebuild a global PLYNOD Structure on processor 0 to have
76C a conversion array from Global Node ID to Internal PLYNOD ID
77
78 DO i=1,nplymax
79 IF (ispmd==0)THEN
80C PROC 0, RECEIVE NODES NUM for each ply
81 DO p=2,nspmd
82 itag=msgoff
83 CALL mpi_recv(recsz,1, mpi_integer, it_spmd(p),
84 . itag, spmd_comm_world, stat, ierr)
85 plyiadnod(i,p) = recsz
86 ENDDO
87 ELSE
88 itag=msgoff
89 CALL mpi_send(plynod(i)%PLYNUMNODS,1,mpi_integer,it_spmd(1),
90 . itag,spmd_comm_world,ierr)
91 ENDIF
92 ENDDO
93
94C
95#endif
96 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(plynods), dimension(:), allocatable plynod
Definition plyxfem_mod.F:44
integer, dimension(:,:), allocatable plyiadnod
Definition plyxfem_mod.F:46