OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ale51_spmd2.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_spmd2 ../engine/source/ale/ale51/ale51_spmd2.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_spmd2(IXQ ,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 : nixq
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 IXQ(NIXQ,NUMELQ), N4_VOIS(NUMELQ+NQVOIS,4), ITABM1(*),NV46
54 my_real flux(4,*),flux_vois(numelq+nqvois,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(2,4),TAG(0:NUMNOD), NI(2), 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/1,2,
66 . 2,3,
67 . 3,4,
68 . 4,1/
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,4
75 tag(ixq(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,4
83 iv = ale_connect%ee_connect%connected(iad2 + k - 1)
84 IF(iv > numels)THEN
85 DO kk=1,4
86 IF(n4_vois(iv,1) /= 0.AND.
87 . flux_vois(iv,kk) /= -ep20)THEN
88 nn =0
89 DO l=1,2
90 ni(l) = sysfus2(n4_vois(iv,iperm(l,kk)),itabm1,numnod )
91 tag(ni(l)) = 1
92 ENDDO
93 DO l=1,2
94 nn=nn+tag(ixq(1+iperm(l,k),ii))
95 ENDDO
96 DO l=1,2
97 tag(ni(l)) = 0
98 ENDDO
99 IF(nn == 2)THEN
100 flux(k,i)=-flux_vois(iv,kk)
101 EXIT !KK
102 ENDIF
103 ENDIF
104 ENDDO
105 ENDIF
106 ENDDO
107 ENDDO
108C
109C-----------------------------------------------
110 RETURN
111 END
112C
subroutine ale51_spmd2(ixq, flux, ale_connect, flux_vois, n4_vois, itabm1, nv46)
Definition ale51_spmd2.F:35
#define my_real
Definition cppsort.cpp:32