1 |
SUBROUTINE DUBSC(INDIC,QQQ) |
2 |
C---------------------------------------------------------------------- |
3 |
C- |
4 |
C- Purpose and Methods : |
5 |
C- |
6 |
C- Inputs : |
7 |
C- Outputs : |
8 |
C- Controls: |
9 |
C- |
10 |
C- Created 30-MAR-1995 MIRKO BOEZIO |
11 |
C- |
12 |
C---------------------------------------------------------------------- |
13 |
IMPLICIT NONE |
14 |
|
15 |
INCLUDE 'INTEST.TXT' |
16 |
|
17 |
REAL QQQ |
18 |
REAL RIL(NCHA/2) |
19 |
REAL DBNCL(4) |
20 |
REAL DBCLUS(4,NCHA) |
21 |
REAL RR, RRR, DAD |
22 |
INTEGER I, J, K, M, L, LL, LK |
23 |
INTEGER ITL, LPIANO |
24 |
INTEGER INDIC, NGIR, ISTOP |
25 |
INTEGER LVMAX |
26 |
C |
27 |
REAL BAR(2,NPLAV) |
28 |
INTEGER IBAR(2,NPLAV) |
29 |
C |
30 |
COMMON / ANGOLO / BAR, IBAR |
31 |
SAVE / ANGOLO / |
32 |
C |
33 |
C Begin! |
34 |
C |
35 |
LPIANO = NPLA / 2 |
36 |
C |
37 |
DO K = 1,NCHA/2 |
38 |
RIL(K) = 0. |
39 |
ENDDO |
40 |
C |
41 |
DO J = 1,4 |
42 |
DO K = 1,NCHA |
43 |
DBCLUS(J,K) = CLUS4(1,J,K) |
44 |
ENDDO |
45 |
DBNCL(J) = NCL4(1,J) |
46 |
ENDDO |
47 |
C |
48 |
QQQ = 0. |
49 |
INDIC = 0 |
50 |
NGIR = 0 |
51 |
|
52 |
M = 1 |
53 |
C |
54 |
DO 5 J = 1,2 |
55 |
C |
56 |
DO I = 1,NGIR |
57 |
RIL(I) = 0. |
58 |
ENDDO |
59 |
C |
60 |
C |
61 |
IF (J.EQ.1) ITL = (LPIANO-6 + 1) / 2 |
62 |
IF (J.EQ.2) ITL = (LPIANO + LPIANO-6 + 1) / 2 |
63 |
|
64 |
DAD = BAR(M,ITL) |
65 |
C |
66 |
NGIR = NCL4(M,J) |
67 |
IF (NGIR.EQ.0) GO TO 5 |
68 |
DO L = 1,NGIR |
69 |
RR = ABS(DAD - CLUS4(M,J,L)) |
70 |
IF (RR.LE.15) THEN |
71 |
DBNCL(J) = DBNCL(J) - 1 |
72 |
DBCLUS(J,L) = 0. |
73 |
DBCLUS(J,L+NCHA/2) = 0. |
74 |
ENDIF |
75 |
ENDDO |
76 |
C |
77 |
5 CONTINUE |
78 |
C |
79 |
NGIR = NCL4(M,1) |
80 |
DO I = 1,NCHA/2 |
81 |
RIL(I) = 0. |
82 |
ENDDO |
83 |
IF (NGIR.GE.1) THEN |
84 |
DO LL = 1,NGIR |
85 |
IF (DBCLUS(1,LL).GT.0) RIL(LL) = DBCLUS(1,LL+NCHA/2) |
86 |
ENDDO |
87 |
7 ENDIF |
88 |
LK = LVMAX(RIL,NCHA/2) |
89 |
QQQ = QQQ + DBCLUS(1,LK+NCHA/2) |
90 |
RRR = DBCLUS(1,LK) |
91 |
C |
92 |
NGIR = NCL4(M,2) |
93 |
IF (NGIR.GE.1) THEN |
94 |
DO LL = 1,NGIR |
95 |
RR = ABS(RRR - DBCLUS(2,LL)) |
96 |
IF (RR.LE.20) THEN |
97 |
QQQ = QQQ + DBCLUS(2,LL+NCHA/2) |
98 |
ENDIF |
99 |
ENDDO |
100 |
ENDIF |
101 |
C |
102 |
ISTOP = 0 |
103 |
C |
104 |
IF (QQQ.GT.30.AND.ISTOP.EQ.0) INDIC = 1 |
105 |
C |
106 |
C |
107 |
400 CONTINUE |
108 |
|
109 |
C---------------------------------------------------------------------- |
110 |
999 RETURN |
111 |
END |
112 |
|