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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_h3d_getmsr_update (fr_wall, disp, msr, xwl, ywl, zwl, rwl)

Function/Subroutine Documentation

◆ spmd_h3d_getmsr_update()

subroutine spmd_h3d_getmsr_update ( integer, dimension(nspmd+2) fr_wall,
disp,
integer msr,
xwl,
ywl,
zwl,
rwl )

Definition at line 31 of file spmd_h3d_getmsr_update.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35 USE spmd_comm_world_mod, ONLY : spmd_comm_world
36#include "implicit_f.inc"
37#include "spmd.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com01_c.inc"
42#include "task_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
47 . disp(3,*),xwl,ywl,zwl,rwl(*)
48 INTEGER MSR,FR_WALL(NSPMD+2)
49C-----------------------------------------------
50C L O C A L V A R I A B L E S
51C-----------------------------------------------
52#ifdef MPI
53 INTEGER P
54 INTEGER STATUS(MPI_STATUS_SIZE),IERROR,MSGOFF,MSGTYP
56 . xyzwl(3)
57 DATA msgoff/7032/
58
59 p = fr_wall(nspmd+2)
60 IF (p==1.OR.p==0) THEN
61 IF (ispmd==0) THEN
62 IF (msr==0) THEN
63 xwl = zero
64 ywl = zero
65 zwl = zero
66 ELSE
67 xwl = disp(1,msr)
68 ywl = disp(2,msr)
69 zwl = disp(3,msr)
70 END IF
71 END IF
72 ELSE
73 IF (p==ispmd+1) THEN
74 IF (msr==0) THEN
75 xwl = zero
76 ywl = zero
77 zwl = zero
78 ELSE
79 xyzwl(1)= disp(1,msr)
80 xyzwl(2)= disp(2,msr)
81 xyzwl(3)= disp(3,msr)
82 END IF
83
84 msgtyp = msgoff
85 CALL mpi_send(xyzwl,3,real,it_spmd(1),msgtyp,
86 . spmd_comm_world,ierror)
87 END IF
88 IF (ispmd==0) THEN
89 msgtyp = msgoff
90 CALL mpi_recv(xyzwl,3,real,it_spmd(p),msgtyp,
91 . spmd_comm_world,status,ierror)
92 xwl = xyzwl(1)
93 ywl = xyzwl(2)
94 zwl = xyzwl(3)
95 END IF
96 END IF
97#endif
98 RETURN
#define my_real
Definition cppsort.cpp:32
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