From a3d9cf8bcd8efec5b298f3986b42ef211b20e7c1 Mon Sep 17 00:00:00 2001 From: Steve Franke Date: Thu, 7 Jun 2018 14:24:35 -0500 Subject: [PATCH] Fix a bug that could cause all log-likelihoods to be NaN in some cases. --- lib/ft8/ft8b.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ft8/ft8b.f90 b/lib/ft8/ft8b.f90 index 7d3453160..bd7eafeff 100644 --- a/lib/ft8/ft8b.f90 +++ b/lib/ft8/ft8b.f90 @@ -179,7 +179,7 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,lapcqonly, & bmetap(i2)=r2 bmetap(i1)=r1 ! Max log metric - psl=log(ps) + psl=log(ps+1e-32) r1=max(psl(1),psl(3),psl(5),psl(7))-max(psl(0),psl(2),psl(4),psl(6)) r2=max(psl(2),psl(3),psl(6),psl(7))-max(psl(0),psl(1),psl(4),psl(5)) r4=max(psl(4),psl(5),psl(6),psl(7))-max(psl(0),psl(1),psl(2),psl(3))