OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_gather_int.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_gather_int ../engine/source/mpi/generic/spmd_gather_int.F
25!||--- called by ------------------------------------------------------
26!|| genh3d ../engine/source/output/h3d/h3d_results/genh3d.F
27!|| init_th ../engine/source/output/th/init_th.F
28!|| read_dynain ../engine/source/output/dynain/read_dynain.F
29!||--- calls -----------------------------------------------------
30!||--- uses -----------------------------------------------------
31!|| spmd_comm_world_mod ../engine/source/mpi/spmd_comm_world.F90
32!||====================================================================
33 SUBROUTINE spmd_gather_int(SENDBUF,RECVBUF,PROC,SEND_SIZE,RCV_SIZE)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37 USE spmd_comm_world_mod, ONLY : spmd_comm_world
38#include "implicit_f.inc"
39C-----------------------------------------------------------------
40C M e s s a g e P a s s i n g
41C-----------------------------------------------
42#include "spmd.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER, INTENT(in) :: SEND_SIZE
47 INTEGER, INTENT(in) :: PROC
48 INTEGER, INTENT(in) :: RCV_SIZE
49 INTEGER, DIMENSION(SEND_SIZE), INTENT(in) :: SENDBUF
50 INTEGER, DIMENSION(RCV_SIZE), INTENT(out) :: RECVBUF
51
52#ifdef MPI
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER :: error
57! ----------------------------------------
58
59! ------------------
60! mpi comm gahter on processor PROC
61 CALL mpi_gather(sendbuf,send_size,mpi_integer,
62 . recvbuf,send_size,mpi_integer,
63 . proc,spmd_comm_world,error)
64! ------------------
65
66#else
67 recvbuf = 0
68#endif
69 RETURN
70 END SUBROUTINE spmd_gather_int
71! ----------------------------------------
subroutine mpi_gather(sendbuf, cnt, datatype, recvbuf, reccnt, rectype, root, comm, ierr)
Definition mpi.f:56
subroutine spmd_gather_int(sendbuf, recvbuf, proc, send_size, rcv_size)