OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
local_index.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/.
23C
24!||====================================================================
25!|| local_index ../starter/source/interfaces/interf1/local_index.F
26!||--- called by ------------------------------------------------------
27!|| i12chk3 ../starter/source/interfaces/inter3d1/i12chk3.F
28!|| i1chk2 ../starter/source/interfaces/inter2d1/i1chk2.f
29!|| i1chk3 ../starter/source/interfaces/inter3d1/i1chk3.F
30!|| i3sti2 ../starter/source/interfaces/inter2d1/i3sti2.F
31!|| i3sti3 ../starter/source/interfaces/inter3d1/i3sti3.F
32!|| i6sti3 ../starter/source/interfaces/inter3d1/i6sti3.F
33!|| i9sti2 ../starter/source/interfaces/int09/i9sti2.F
34!|| i9sti3 ../starter/source/interfaces/int09/i9sti3.F
35!||====================================================================
36 SUBROUTINE local_index(IL,IG,NODES,N)
37C-----------------------------------------------
38C D e s c r i p t i o n
39C-----------------------------------------------
40C Search IL such as NODES(IL)=IG
41C PRECONDITION : NODES(:) MUST BE ORDERED
42C SEARCH ALGORITHM : Dichotomic Search
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER, INTENT(IN) :: IG, N, NODES(N)
51 INTEGER, INTENT(OUT) :: IL
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER IMIN, IMAX, K, M
56C-----------------------------------------------
57 imin=0
58 imax=n
59C
60 m=n/2
61 DO WHILE (m > 0)
62 k=m+imin
63 IF(nodes(k) < ig) THEN
64 imin=k
65 m=imax-imin
66 ELSE
67 imax=k
68 ENDIF
69 m=m/2
70 ENDDO
71 il=imax
72C
73 RETURN
74 END
subroutine i1chk2(x, irect, ixq, nrt, nint, nsn, nsv, noint, id, titr)
Definition i1chk2.F:35
subroutine local_index(il, ig, nodes, n)
Definition local_index.F:37
program starter
Definition starter.F:39