From 672f0e4535b974652c5b526c0976aea726290b03 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Wed, 13 May 2020 21:15:00 -0400 Subject: [PATCH] Added decode debug of where we start the decode --- lib/decoder.f90 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/decoder.f90 b/lib/decoder.f90 index 81f7ee1..b9b9ea8 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -90,6 +90,10 @@ subroutine multimode_decoder(ss,id2,params,nfsample) id0=0 imax=int(NTMAX*12000) + if(params%syncStats) then + write(*,*) ' 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(*,*) ' 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(*,*) ' 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(*,*) ' 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(*,*) ' 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