Added decode debug of where we start the decode

This commit is contained in:
Jordan Sherer 2020-05-13 21:15:00 -04:00
parent d76bb7fbd2
commit 672f0e4535

View File

@ -90,6 +90,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
id0=0
imax=int(NTMAX*12000)
if(params%syncStats) then
write(*,*) '<DecodeDebug> sync start', pos, sz
endif
if((imax-pos).lt.sz) then
! this means that the first part of the id0 is at the end of the buffer
! and the second half is at the beginning of the buffer
@ -124,6 +128,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
id0=0
imax=int(NTMAX*12000)
if(params%syncStats) then
write(*,*) '<DecodeDebug> sync start', pos, sz
endif
if((imax-pos).lt.sz) then
! this means that the first part of the id0 is at the end of the buffer
! and the second half is at the beginning of the buffer
@ -158,6 +166,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
id0=0
imax=int(NTMAX*12000)
if(params%syncStats) then
write(*,*) '<DecodeDebug> sync start', pos, sz
endif
if((imax-pos).lt.sz) then
! this means that the first part of the id0 is at the end of the buffer
! and the second half is at the beginning of the buffer
@ -192,6 +204,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
id0=0
imax=int(NTMAX*12000)
if(params%syncStats) then
write(*,*) '<DecodeDebug> sync start', pos, sz
endif
if((imax-pos).lt.sz) then
! this means that the first part of the id0 is at the end of the buffer
! and the second half is at the beginning of the buffer
@ -226,6 +242,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample)
id0=0
imax=int(NTMAX*12000)
if(params%syncStats) then
write(*,*) '<DecodeDebug> sync start', pos, sz
endif
if((imax-pos).lt.sz) then
! this means that the first part of the id0 is at the end of the buffer
! and the second half is at the beginning of the buffer