OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
inrch2.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!|| inrch2 ../starter/source/interfaces/inter2d1/inrch2.F
25!||--- called by ------------------------------------------------------
26!|| i1chk2 ../starter/source/interfaces/inter2d1/i1chk2.F
27!|| i3sti2 ../starter/source/interfaces/inter2d1/i3sti2.F
28!|| i9sti2 ../starter/source/interfaces/int09/i9sti2.F
29!||--- calls -----------------------------------------------------
30!|| ancmsg ../starter/source/output/message/message.F
31!||--- uses -----------------------------------------------------
32!|| message_mod ../starter/share/message_module/message_mod.F
33!||====================================================================
34 SUBROUTINE inrch2(X , IRECT, ICO, ISG, NEL ,
35 . NINT, YM1, YM2, ZM1 ,
36 . ZM2 , YE , ZE , ID , TITR)
37C-----------------------------------------------
38C D e s c r i p t i o n
39C-----------------------------------------------
40C INIT INTERFACE : SEARCH THE CONNECTED ELEMENT TO A GIVEN SEGMENT
41C WHEN FOUND ELEM NODES COORDINATES ARE STORED IN (YE, ZE)
42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
45 USE message_mod
47C-----------------------------------------------
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "com04_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 INTEGER ISG, NEL, NINT
59 INTEGER IRECT(4,*), ICO(7,*)
60 my_real x(3,*), ym1, ym2, zm1, zm2,ye(4) ,ze(4)
61 INTEGER ID
62 CHARACTER(LEN=NCHARTITLE) :: TITR
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER IX(4), NE, I1, I2, K, J, JJ, II
67 LOGICAL lFOUND
68C-----------------------------------------------
69C P r e - C o n d i t i o n
70C-----------------------------------------------
71 nel = 0
72 IF(numelq == 0) RETURN
73C-----------------------------------------------
74C S o u r c e L i n e s
75C-----------------------------------------------
76 DO ne=1,numelq
77 i1=irect(1,isg)
78 i2=irect(2,isg)
79 ix(1)=ico(2,ne)
80 ix(2)=ico(3,ne)
81 ix(3)=ico(4,ne)
82 ix(4)=ico(5,ne)
83 DO k=1,4
84 IF(ix(k)/=i1)cycle
85 DO j=1,4
86 IF(ix(j)/=i2)cycle
87 nel=ne
88 ym1=x(2,i1)
89 zm1=x(3,i1)
90 ym2=x(2,i2)
91 zm2=x(3,i2)
92 DO jj=1,4
93 ii=ix(jj)
94 ye(jj)=x(2,ii)
95 ze(jj)=x(3,ii)
96 ENDDO !next JJ
97 RETURN
98 ENDDO !next J
99 ENDDO !next K
100 END DO !next NE
101
102 IF(nint>0) THEN
103 !** WARNING: CANNOT FIND ELEMENT OF SECONDARY
104 CALL ancmsg(msgid=92,msgtype=msgwarning,anmode=aninfo_blind_2,i1=id,c1=titr,i2=isg)
105 ENDIF
106
107 IF(nint<0) THEN
108 ! ** warning: cannot find element of main segment
109 CALL ancmsg(msgid=93,msgtype=msgwarning,anmode=aninfo_blind_2,i1=id,c1=titr,i2=isg)
110 ENDIF
111 RETURN
112
113 END
#define my_real
Definition cppsort.cpp:32
subroutine inrch2(x, irect, ico, isg, nel, nint, ym1, ym2, zm1, zm2, ye, ze, id, titr)
Definition inrch2.F:37
integer, parameter nchartitle
int main(int argc, char *argv[])
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889