#include "implicit_f.inc"
#include "units_c.inc"
Go to the source code of this file.
◆ fredec2i()
| subroutine fredec2i |
( |
character(len=ncharline100) | line, |
|
|
integer | id ) |
Definition at line 32 of file fredec2i.F.
33
34
35
37
38
39
40#include "implicit_f.inc"
41#include "units_c.inc"
42
43
44
45 CHARACTER(LEN=NCHARLINE100) :: LINE
46 INTEGER ID
47
48
49
50 CHARACTER(LEN=NCHARLINE100) MOT
51 INTEGER I,J1,J2,J
52 mot=' '
53 i=2
54 DO WHILE(line(i:i)/='/')
55 i=i+1
57 ENDDO
58 i=i+1
60 j1=i
61 DO WHILE(line(i:i)/='/')
62 i=i+1
64 ENDDO
65 j2=i-1
66
67 mot=line(j1:j2)
68 READ(mot,
'(I10)',err=910)
id
69 RETURN
70
71
72 900 CONTINUE
73 WRITE(istdo,*)
74 . ' ** ERROR IN FREDEC2I WHILE GETTING KEY',
75 . ' ** line=',LINE
76 WRITE(IOUT,*)
77 . ' ** error in
fredec2i WHILE getting key
',
78 . ' ** line=',LINE
79 CALL ARRET(2)
80 RETURN
81 910 CONTINUE
82 WRITE(ISTDO,*)
84 . ' ** line=',LINE,
85 . ' ** key=',MOT,' is not an integer'
86 WRITE(IOUT,*)
88 . ' ** line=',LINE,
89 . ' ** key=',MOT,' is not an integer'
90 CALL ARRET(2)
91 RETURN
subroutine fredec2i(line, id)
integer, parameter ncharline100