OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
local_index.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
C
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)
37
C-----------------------------------------------
38
C D e s c r i p t i o n
39
C-----------------------------------------------
40
C Search IL such as NODES(IL)=IG
41
C PRECONDITION : NODES(:) MUST BE ORDERED
42
C SEARCH ALGORITHM : Dichotomic Search
43
C-----------------------------------------------
44
C I m p l i c i t T y p e s
45
C-----------------------------------------------
46
#include "implicit_f.inc"
47
C-----------------------------------------------
48
C D u m m y A r g u m e n t s
49
C-----------------------------------------------
50
INTEGER
,
INTENT(IN)
:: IG, N, NODES(N)
51
INTEGER
,
INTENT(OUT)
:: IL
52
C-----------------------------------------------
53
C L o c a l V a r i a b l e s
54
C-----------------------------------------------
55
INTEGER
IMIN, IMAX, K, M
56
C-----------------------------------------------
57
imin=0
58
imax=n
59
C
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
72
C
73
RETURN
74
END
local_index
subroutine local_index(il, ig, nodes, n)
Definition
local_index.F:37
starter
source
interfaces
interf1
local_index.F
Generated by
1.15.0