OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ale51_spmd3.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!|| ale51_spmd3 ../engine/source/ale/ale51/ale51_spmd3.F
25!||--- called by ------------------------------------------------------
26!|| afluxt ../engine/source/ale/ale51/afluxt.F
27!||--- calls -----------------------------------------------------
28!|| sysfus2 ../engine/source/system/sysfus.F
29!||--- uses -----------------------------------------------------
30!|| ale_connectivity_mod ../common_source/modules/ale/ale_connectivity_mod.F
31!|| element_mod ../common_source/modules/elements/element_mod.F90
32!||====================================================================
33 SUBROUTINE ale51_spmd3(IXS ,FLUX ,ALE_CONNECT,
34 . FLUX_VOIS,N4_VOIS,ITABM1,NV46)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
39 use element_mod , only : nixs
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "spmd_c.inc"
48#include "com04_c.inc"
49#include "vect01_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IXS(NIXS,NUMELS), N4_VOIS(NUMELS+NSVOIS,8),ITABM1(*),NV46
54 my_real flux(6,*), flux_vois(numels+nsvois,nv46)
55 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I,II,K,KK,L,IV,NN,IPERM(4,6),TAG(0:NUMNOD), NI(4), IAD2
60C-----------------------------------------------
61C E x t e r n a l F u n c t i o n s
62C-----------------------------------------------
63 INTEGER SYSFUS2
64C-----------------------------------------------
65 DATA iperm/3,1,2,4,
66 . 7,4,3,8,
67 . 6,8,7,5,
68 . 2,5,6,1,
69 . 7,2,6,3,
70 . 8,1,4,5/
71C-----------------------------------------------
72C S o u r c e L i n e s
73C-----------------------------------------------
74 DO i=lft,llt
75 ii = i+nft
76 DO l=1,8
77 tag(ixs(1+l,ii)) = 0
78 ENDDO
79 ENDDO
80
81 DO i=lft,llt
82 ii = i+nft
83 iad2 = ale_connect%ee_connect%iad_connect(ii)
84 DO k=1,6
85 iv = ale_connect%ee_connect%connected(iad2 + k - 1)
86 IF(iv > numels)THEN
87 DO kk=1,6
88 IF(n4_vois(iv,1) /= 0.AND.
89 . flux_vois(iv,kk) /= -ep20)THEN
90 nn =0
91 DO l=1,4
92 ni(l) = sysfus2(n4_vois(iv,iperm(l,kk)),itabm1,numnod)
93 tag(ni(l)) = 1
94 ENDDO
95 DO l=1,4
96 nn=nn+tag(ixs(1+iperm(l,k),ii))
97 ENDDO
98 DO l=1,4
99 tag(ni(l)) = 0
100 ENDDO
101 IF(nn==4)THEN
102 flux(k,i)=-flux_vois(iv,kk)
103 EXIT !KK
104 ENDIF
105 ENDIF
106 ENDDO
107 ENDIF
108 enddo!nextK
109 enddo!next I
110C-----------------------------------------------
111 RETURN
112 END
113C
subroutine ale51_spmd3(ixs, flux, ale_connect, flux_vois, n4_vois, itabm1, nv46)
Definition ale51_spmd3.F:35
#define my_real
Definition cppsort.cpp:32