mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 14:42:25 -04:00
Make ldpcsim program work again.
This commit is contained in:
parent
355b060454
commit
d462277a3e
@ -32,7 +32,7 @@ program ldpcsim240_101
|
|||||||
call getarg(1,arg)
|
call getarg(1,arg)
|
||||||
read(arg,*) max_iterations
|
read(arg,*) max_iterations
|
||||||
call getarg(2,arg)
|
call getarg(2,arg)
|
||||||
read(arg,*) ndeep
|
read(arg,*) norder
|
||||||
call getarg(3,arg)
|
call getarg(3,arg)
|
||||||
read(arg,*) ntrials
|
read(arg,*) ntrials
|
||||||
call getarg(4,arg)
|
call getarg(4,arg)
|
||||||
@ -47,7 +47,7 @@ program ldpcsim240_101
|
|||||||
|
|
||||||
write(*,*) "code rate: ",rate
|
write(*,*) "code rate: ",rate
|
||||||
write(*,*) "niter : ",max_iterations
|
write(*,*) "niter : ",max_iterations
|
||||||
write(*,*) "ndeep : ",ndeep
|
write(*,*) "norder : ",norder
|
||||||
write(*,*) "s : ",s
|
write(*,*) "s : ",s
|
||||||
write(*,*) "K : ",Keff
|
write(*,*) "K : ",Keff
|
||||||
|
|
||||||
@ -100,19 +100,13 @@ write(*,'(24i1)') msgbits(78:101)
|
|||||||
|
|
||||||
llr=2.0*rxdata/(ss*ss)
|
llr=2.0*rxdata/(ss*ss)
|
||||||
apmask=0
|
apmask=0
|
||||||
! max_iterations is max number of belief propagation iterations
|
|
||||||
call bpdecode240_101(llr,apmask,max_iterations,message101,cw,nharderror,niterations,nchecks)
|
|
||||||
dmin=0.0
|
dmin=0.0
|
||||||
if( (nharderror .lt. 0) .and. (ndeep .ge. 0) ) then
|
maxosd=2
|
||||||
! call osd240_101(llr, Keff, apmask, ndeep, message101, cw, nharderror, dmin)
|
call decode240_101(llr, Keff, maxosd, norder, apmask, message101, cw, ntype, nharderror, dmin)
|
||||||
maxsuper=2
|
|
||||||
call decode240_101(llr, Keff, ndeep, apmask, maxsuper, message101, cw, nharderror, iterations, ncheck, dmin, isuper)
|
|
||||||
endif
|
|
||||||
|
|
||||||
if(nharderror.ge.0) then
|
if(nharderror.ge.0) then
|
||||||
n2err=0
|
n2err=0
|
||||||
do i=1,N
|
do i=1,N
|
||||||
if( cw(i)*(2*codeword(i)-1.0) .lt. 0 ) n2err=n2err+1
|
if( cw(i).ne.codeword(i) ) n2err=n2err+1
|
||||||
enddo
|
enddo
|
||||||
if(n2err.eq.0) then
|
if(n2err.eq.0) then
|
||||||
ngood=ngood+1
|
ngood=ngood+1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user