37
38
39
42
43
44
45#include "implicit_f.inc"
46
47
48
49 CHARACTER(LEN=NCHARLINE100) BUFMSG(100)
50
51
52
53 CHARACTER(LEN=NCHARLINE100) LINE,KEY,KEYST
54 INTEGER I,J,ID,ITYPE,INDX,SBUFMSG,ISTYPE
55
56 smessages=1
57 DO i=1,100
58 bufmsg(i)=' '
59 END DO
60 DO i=1,smessagesfile
61
62 line=messagesfile(i)
63 IF (line(1:9)=='/MESSAGE/') THEN
65 IF (
id>smessages)
THEN
67 END IF
68 END IF
69 END DO
70 smessages=
min(smessages,smessagesmax)
71 ALLOCATE(messages(2,smessages))
73 sbufmsg=0
74 itype=0
75 DO i=1,smessagesfile
76
77 line=messagesfile(i)
78 IF (line(1:9)=='/MESSAGE/') THEN
79 IF (
id>0.AND.
id<=smessagesmax.AND.itype/=0)
THEN
81 END IF
82 sbufmsg=0
86 itype=1
87 IF (key(1:5)=='TITLE') THEN
88 itype=1
89 ELSE IF (key(1:11)=='DESCRIPTION') THEN
90 itype=2
91 END IF
92 ELSE
93 IF (
id>0.AND.line(1:1)/=
'#')
THEN
94 sbufmsg=sbufmsg+1
95 bufmsg(sbufmsg)=line
96 END IF
97 END IF
98 END DO
99 IF (
id>0.AND.
id<=smessagesmax.AND.itype/=0)
THEN
101 END IF
subroutine fredec2i(line, id)
subroutine fredec3(line, key)
integer, parameter ncharline100
subroutine stock_msg(id, itype, sbufmsg, bufmsg)