OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_rbcast.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
25
26C
27!||====================================================================
28!|| spmd_rbcast ../engine/source/mpi/generic/spmd_rbcast.F
29!||--- called by ------------------------------------------------------
30!|| agauge ../engine/source/ale/agauge.F
31!|| agauge0 ../engine/source/ale/agauge.F
32!|| alelin ../engine/source/ale/grid/alelin.F
33!|| ecrit ../engine/source/output/ecrit.F
34!|| find_dt_for_targeted_added_mass ../engine/source/time_step/find_dt_for_targeted_added_mass.F
35!|| get_mass_rby_spmd ../engine/source/coupling/rad2rad/r2r_init.F
36!|| get_u_nod_a ../engine/source/user_interface/uaccess.F
37!|| get_u_nod_d ../engine/source/user_interface/uaccess.F
38!|| get_u_nod_v ../engine/source/user_interface/uaccess.F
39!|| get_u_nod_x ../engine/source/user_interface/uaccess.F
40!|| i9wal2 ../engine/source/interfaces/int09/i9wal2.F
41!|| i9wal3 ../engine/source/interfaces/int09/i9wal3.F
42!|| imp_buck ../engine/source/implicit/imp_buck.F
43!|| intstamp_ass ../engine/source/interfaces/int21/intstamp_ass.F
44!|| manctr ../engine/source/input/manctr.F
45!|| movfra1 ../engine/source/tools/skew/movfram.F
46!|| movfra2 ../engine/source/tools/skew/movfram.F
47!|| movfra_imp ../engine/source/tools/skew/movfram.F
48!|| r2r_input_init ../engine/source/coupling/rad2rad/r2r_input_init.F
49!|| resol ../engine/source/engine/resol.F
50!|| section_init ../engine/source/tools/sect/section_init.F
51!|| section_readp ../engine/source/tools/sect/section_readp.F
52!|| sensor_spmd ../engine/source/tools/sensor/sensor_spmd.F
53!|| sms_pcg ../engine/source/ams/sms_pcg.F
54!|| sms_produt3 ../engine/source/ams/sms_proj.F
55!|| sms_produt_h ../engine/source/ams/sms_proj.F
56!|| spmd_i21crit ../engine/source/mpi/interfaces/spmd_i21crit.F
57!||--- calls -----------------------------------------------------
58!||--- uses -----------------------------------------------------
59!|| spmd_comm_world_mod ../engine/source/mpi/spmd_comm_world.F90
60!||====================================================================
61 SUBROUTINE spmd_rbcast(TABI,TABR,N1,N2,FROM,ADD)
62C-----------------------------------------------
63C I m p l i c i t T y p e s
64C-----------------------------------------------
65 USE spmd_comm_world_mod, ONLY : spmd_comm_world
66#include "implicit_f.inc"
67C-----------------------------------------------------------------
68C M e s s a g e P a s s i n g
69C-----------------------------------------------
70#include "spmd.inc"
71C-----------------------------------------------
72C C o m m o n B l o c k s
73C-----------------------------------------------
74#include "task_c.inc"
75C-----------------------------------------------
76C D u m m y A r g u m e n t s
77C-----------------------------------------------
78 INTEGER N1,N2,FROM,ADD
79 my_real tabi(n1*n2),tabr(n1*n2)
80C-----------------------------------------------
81C L o c a l V a r i a b l e s
82C-----------------------------------------------
83#ifdef MPI
84 INTEGER INFO,MSGOFF
85 INTEGER K
86 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
87C-----------------------------------------------
88C S o u r c e L i n e s
89C-----------------------------------------------
90
91C si FROM = 0 ADD = 2 broadcast depuis 0 sur les autres
92C si FROM = NSPMD ADD = 1 de NSPMD sur les autres
93
94 IF(ispmd==from)THEN
95 call mpi_bcast(tabi,n1*n2,real,from,
96 . spmd_comm_world,ierror)
97 ELSE
98 call mpi_bcast(tabr,n1*n2,real,from,
99 . spmd_comm_world,ierror)
100 ENDIF
101
102#endif
103 RETURN
104 END
#define my_real
Definition cppsort.cpp:32
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205
subroutine spmd_rbcast(tabi, tabr, n1, n2, from, add)
Definition spmd_rbcast.F:62