37 |
|
|
38 |
* =================================== |
* =================================== |
39 |
if(length_buffer.gt.MAXBUFFLEN)then |
if(length_buffer.gt.MAXBUFFLEN)then |
40 |
print*,'trkeventpkt: buffer() size must be at least ' |
c print*,'trkeventpkt: buffer() size must be at least ' |
41 |
$ ,length_buffer,' !!!!' |
c $ ,length_buffer,' !!!!' |
42 |
goto 2222 |
goto 2222 |
43 |
endif |
endif |
44 |
* =================================== |
* =================================== |
143 |
|
|
144 |
* =================================== |
* =================================== |
145 |
if(length_buffer.gt.MAXBUFFLEN)then |
if(length_buffer.gt.MAXBUFFLEN)then |
146 |
print*,'trkeventpkt: buffer() size must be at least ' |
c print*,'trkeventpkt: buffer() size must be at least ' |
147 |
$ ,length_buffer,' !!!!' |
c $ ,length_buffer,' !!!!' |
148 |
goto 2222 |
goto 2222 |
149 |
endif |
endif |
150 |
* =================================== |
* =================================== |
500 |
C---------------------------------------------------------- |
C---------------------------------------------------------- |
501 |
runerror=0 |
runerror=0 |
502 |
nqualcosa=0 |
nqualcosa=0 |
503 |
if(l_tra.eq.0)then |
c if(l_tra.eq.0)then |
504 |
|
if(l_tra.le.0)then |
505 |
goto 18 !empty buffer |
goto 18 !empty buffer |
506 |
endif |
endif |
507 |
|
|
508 |
if(l_tra.gt.MAXBUFFLEN .or.(curpos+l_tra-1).ge.MAXBUFFLEN )then |
if(l_tra.gt.MAXBUFFLEN .or.(curpos+l_tra-1).ge.MAXBUFFLEN )then |
509 |
print*,'unpackdata: ' |
c print*,'unpackdata: ' |
510 |
$ ,'tracker buffer length l_tra ',l_tra |
c $ ,'tracker buffer length l_tra ',l_tra |
511 |
$ ,' exceeds tracker buffer dimensions ' |
c $ ,' exceeds tracker buffer dimensions ' |
512 |
print*,'(packet corrupted)' |
c print*,'(packet corrupted)' |
513 |
cc runerror=1 |
cc runerror=1 |
514 |
runerror=2 |
runerror=2 |
515 |
goto 50 |
goto 50 |