From 7df24d31cbfd5d5220a1211ffa6b4150c16271e4 Mon Sep 17 00:00:00 2001 From: Qianruipku Date: Sun, 30 Oct 2022 11:22:17 +0800 Subject: [PATCH] fix a bug in smooth-ssf --- src/ssf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssf.cpp b/src/ssf.cpp index a84b85f..0a95bfe 100644 --- a/src/ssf.cpp +++ b/src/ssf.cpp @@ -574,6 +574,7 @@ void SSF::write_smoothssf(const float *G_1D,const float *sf, const int *nG_1D, c { float G = G_1D[i]; int nG = nG_1D[i]; + if(G < 1e-6) continue; if(int(G/dG) == i0) { tm_pre += nG;