#include "implicit_f.inc"
Go to the source code of this file.
◆ local_index()
| subroutine local_index |
( |
integer, intent(out) | il, |
|
|
integer, intent(in) | ig, |
|
|
integer, dimension(n), intent(in) | nodes, |
|
|
integer, intent(in) | n ) |
Definition at line 36 of file local_index.F.
37
38
39
40
41
42
43
44
45
46#include "implicit_f.inc"
47
48
49
50 INTEGER, INTENT(IN) :: IG, N, NODES(N)
51 INTEGER, INTENT(OUT) :: IL
52
53
54
55 INTEGER IMIN, IMAX, K, M
56
57 imin=0
58 imax=n
59
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
73 RETURN