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!||====================================================================
32 SUBROUTINE ale51_spmd2(IXQ ,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 IXQ(NIXQ,NUMELQ), N4_VOIS(NUMELQ+NQVOIS,4), ITABM1(*),NV46
52 my_real flux(4,*),flux_vois(numelq+nqvois,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(2,4),TAG(0:NUMNOD), NI(2), 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/1,2,
64 . 2,3,
65 . 3,4,
66 . 4,1/
67C-----------------------------------------------
68C S o u r c e L i n e s
69C-----------------------------------------------
70 DO i=lft,llt
71 ii = i+nft
72 DO l=1,4
73 tag(ixq(1+l,ii)) = 0
74 ENDDO
75 ENDDO
76
77 DO i=lft,llt
78 ii = i+nft
79 iad2 = ale_connect%ee_connect%iad_connect(ii)
80 DO k=1,4
81 iv = ale_connect%ee_connect%connected(iad2 + k - 1)
82 IF(iv > numels)THEN
83 DO kk=1,4
84 IF(n4_vois(iv,1) /= 0.AND.
85 . flux_vois(iv,kk) /= -ep20)THEN
86 nn =0
87 DO l=1,2
88 ni(l) = sysfus2(n4_vois(iv,iperm(l,kk)),itabm1,numnod )
89 tag(ni(l)) = 1
90 ENDDO
91 DO l=1,2
92 nn=nn+tag(ixq(1+iperm(l,k),ii))
93 ENDDO
94 DO l=1,2
95 tag(ni(l)) = 0
96 ENDDO
97 IF(nn == 2)THEN
98 flux(k,i)=-flux_vois(iv,kk)
99 EXIT !KK
100 ENDIF
101 ENDIF
102 ENDDO
103 ENDIF
104 ENDDO
105 ENDDO
106C
107C-----------------------------------------------
108 RETURN
109 END
110C
subroutine ale51_spmd2(ixq, flux, ale_connect, flux_vois, n4_vois, itabm1, nv46)
Definition ale51_spmd2.F:34
#define my_real
Definition cppsort.cpp:32