OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_agetmsr.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| spmd_agetmsr ../engine/source/mpi/anim/spmd_agetmsr.F
25!||--- called by ------------------------------------------------------
26!|| dxwalc ../engine/source/output/anim/generate/dxwalc.F
27!|| dxwall ../engine/source/output/anim/generate/dxwall.F
28!|| dxwalp ../engine/source/output/anim/generate/dxwalp.F
29!|| dxwals ../engine/source/output/anim/generate/dxwals.f
30!|| dxyzsect ../engine/source/output/anim/generate/dxyzsect.F
31!||--- calls -----------------------------------------------------
32!||--- uses -----------------------------------------------------
33!|| spmd_mod ../engine/source/mpi/spmd_mod.F90
34!||====================================================================
35 SUBROUTINE spmd_agetmsr(FR_WALL,X,MSR,XWL,YWL,ZWL,RWL)
36 use spmd_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41#include "spmd.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "com01_c.inc"
46#include "task_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
51 . x(3,*),xwl,ywl,zwl,rwl(*)
52 INTEGER MSR,FR_WALL(NSPMD+2)
53C-----------------------------------------------
54C L O C A L V A R I A B L E S
55C-----------------------------------------------
56#ifdef MPI
57 INTEGER P
58 INTEGER STATUS(MPI_STATUS_SIZE),IERROR,MSGOFF,MSGTYP
60 . xyzwl(3)
61 DATA msgoff/7032/
62
63 p = fr_wall(nspmd+2)
64 IF (p==1.OR.p==0) THEN
65 IF (ispmd==0) THEN
66 IF (msr==0) THEN
67 xwl = rwl(4)
68 ywl = rwl(5)
69 zwl = rwl(6)
70 ELSE
71 xwl = x(1,msr)
72 ywl = x(2,msr)
73 zwl = x(3,msr)
74 END IF
75 END IF
76 ELSE
77 IF (p==ispmd+1) THEN
78 IF (msr==0) THEN
79 xwl = rwl(4)
80 ywl = rwl(5)
81 zwl = rwl(6)
82 ELSE
83 xyzwl(1)= x(1,msr)
84 xyzwl(2)= x(2,msr)
85 xyzwl(3)= x(3,msr)
86 END IF
87
88 msgtyp = msgoff
89 CALL mpi_send(xyzwl,3,real,it_spmd(1),msgtyp,
90 . spmd_comm_world,ierror)
91 END IF
92 IF (ispmd==0) THEN
93 msgtyp = msgoff
94 CALL mpi_recv(xyzwl,3,real,it_spmd(p),msgtyp,
95 . spmd_comm_world,status,ierror)
96 xwl = xyzwl(1)
97 ywl = xyzwl(2)
98 zwl = xyzwl(3)
99 END IF
100 END IF
101#endif
102 RETURN
103 END
#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
subroutine spmd_agetmsr(fr_wall, x, msr, xwl, ywl, zwl, rwl)
subroutine dxwals(x, rwl, msr)
Definition dxwals.F:30