OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_glob_imax9.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
24
!||====================================================================
25
!|| spmd_glob_imax9 ../engine/source/mpi/generic/spmd_glob_imax9.F
26
!||--- called by ------------------------------------------------------
27
!|| find_dt_for_targeted_added_mass ../engine/source/time_step/find_dt_for_targeted_added_mass.F
28
!|| genani ../engine/source/output/anim/generate/genani.F
29
!|| sms_ini_kin_1 ../engine/source/ams/sms_init.F
30
!|| sms_ini_kin_2 ../engine/source/ams/sms_init.F
31
!||--- calls -----------------------------------------------------
32
!||--- uses -----------------------------------------------------
33
!|| spmd_comm_world_mod ../engine/source/mpi/spmd_comm_world.F90
34
!||====================================================================
35
SUBROUTINE
spmd_glob_imax9
(V,LEN)
36
C gather tableau V de taille LEN de type integer
37
C-----------------------------------------------
38
C I m p l i c i t T y p e s
39
C-----------------------------------------------
40
USE
spmd_comm_world_mod,
ONLY
: spmd_comm_world
41
#include "implicit_f.inc"
42
C-----------------------------------------------------------------
43
C M e s s a g e P a s s i n g
44
C-----------------------------------------------
45
#include "spmd.inc"
46
C-----------------------------------------------
47
C C o m m o n B l o c k s
48
C-----------------------------------------------
49
#include "task_c.inc"
50
C-----------------------------------------------
51
C D u m m y A r g u m e n t s
52
C-----------------------------------------------
53
INTEGER
LEN, V(LEN)
54
C-----------------------------------------------
55
C L o c a l V a r i a b l e s
56
C-----------------------------------------------
57
#ifdef MPI
58
INTEGER
MSGOFF,MSGTYP,INFO,I,K,ATID,ATAG,ALEN,IERROR,
59
. VTMP(LEN),STATUS(MPI_STATUS_SIZE)
60
C-----------------------------------------------
61
C S o u r c e L i n e s
62
C-----------------------------------------------
63
IF
(len > 0)
THEN
64
CALL
mpi_reduce
(v,vtmp,len,
65
. mpi_integer,mpi_max,it_spmd(1),
66
. spmd_comm_world,ierror)
67
ENDIF
68
IF
(ispmd==0)
THEN
69
DO
i=1,len
70
v(i) = vtmp(i)
71
END DO
72
ENDIF
73
C
74
#endif
75
RETURN
76
END
mpi_reduce
subroutine mpi_reduce(sendbuf, recvbuf, cnt, datatype, op, root, comm, ierr)
Definition
mpi.f:120
spmd_glob_imax9
subroutine spmd_glob_imax9(v, len)
Definition
spmd_glob_imax9.F:36
engine
source
mpi
generic
spmd_glob_imax9.F
Generated by
1.15.0