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