From 51f4dacc9e67bab7595f3de4133c12ab4be60d78 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 19 May 2025 12:59:29 -0300 Subject: Fix NaN check under smoothing --- log-fourier_integrator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'log-fourier_integrator.cpp') diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 3ae00dd..e13cf1b 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -204,7 +204,7 @@ int main(int argc, char* argv[]) { std::cerr << std::setprecision(7) << β << " " << Δβ << " " << μₜ << " " << ΔCₜ << " " << γ; } - if (std::isnan(Cₜ[0])) { + if (std::isnan(ΔCₜ)) { β -= Δβ; Δβ *= 0.1; β += Δβ; -- cgit v1.2.3-70-g09d2