2005-12-22 11:40:53 -05:00
|
|
|
subroutine chkmsg(message,cok,nspecial,flip)
|
|
|
|
|
|
|
|
character message*22,cok*3
|
|
|
|
|
|
|
|
nspecial=0
|
|
|
|
flip=1.0
|
|
|
|
cok=" "
|
|
|
|
|
|
|
|
do i=22,1,-1
|
|
|
|
if(message(i:i).ne.' ') go to 10
|
|
|
|
enddo
|
|
|
|
i=22
|
|
|
|
|
2006-04-21 15:33:30 -04:00
|
|
|
10 if(i.ge.11 .and. (message(i-3:i).eq.' OOO') .or.
|
|
|
|
+ (message(20:22).eq.' OO')) then
|
2005-12-22 11:40:53 -05:00
|
|
|
cok='OOO'
|
|
|
|
flip=-1.0
|
2006-04-21 16:18:51 -04:00
|
|
|
if(message(20:22).eq.' OO') then
|
|
|
|
message=message(1:19)
|
|
|
|
else
|
|
|
|
message=message(1:i-4)
|
|
|
|
endif
|
2005-12-22 11:40:53 -05:00
|
|
|
endif
|
|
|
|
|
2006-04-21 15:33:30 -04:00
|
|
|
! if(message(1:3).eq.'ATT') nspecial=1
|
2005-12-22 11:40:53 -05:00
|
|
|
if(message(1:2).eq.'RO') nspecial=2
|
|
|
|
if(message(1:3).eq.'RRR') nspecial=3
|
|
|
|
if(message(1:2).eq.'73') nspecial=4
|
|
|
|
|
|
|
|
return
|
|
|
|
end
|