#include "implicit_f.inc"
Go to the source code of this file.
|
| subroutine | redkey0 (key0, nkey, carte, ikey, nslash) |
◆ redkey0()
| subroutine redkey0 |
( |
character(len=5), dimension(nkey) | key0, |
|
|
integer | nkey, |
|
|
character(len=ncharline100) | carte, |
|
|
integer | ikey, |
|
|
integer, dimension(*) | nslash ) |
Definition at line 32 of file redkey0.F.
33
34
35
37
38
39
40#include "implicit_f.inc"
41
42
43
44 INTEGER NKEY, IKEY,NSLASH(*)
45 CHARACTER(LEN=NCHARLINE100) :: CARTE
46 CHARACTER(LEN=5) :: KEY0(NKEY)
47
48
49
50 INTEGER J, I
51 CHARACTER(len=5) :: KEY
52
53 j=0
54 key(1:5)=' '
55
57 IF(carte(i:i)=='/')EXIT
58 IF(carte(i:i)==' ')cycle
59 j=j+1
60 IF(j>5)EXIT
61 key(j:j)=carte(i:i)
62 ENDDO
63
64 DO i=1,nkey
65 ikey=i
66 IF(key(1:5)==key0(ikey))THEN
67 nslash(ikey)=nslash(ikey)+1
68 EXIT
69 ENDIF
70 ENDDO
71 IF(key(1:5)/=key0(ikey))THEN
72 ikey=0
74 ENDIF
75
76
77 RETURN
integer, parameter ncharline100