diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-15 14:26:11 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-15 14:26:11 -0300 |
commit | e9b5f2c6e25423fa492d3c5648be9db9ed4f6b2e (patch) | |
tree | 5cdaff8a8b484d47dc808e1fe9978c0eeeda11d0 | |
parent | 75d6077bdbd7a45c59a163c01f04b32bd19a0ebf (diff) | |
download | code-e9b5f2c6e25423fa492d3c5648be9db9ed4f6b2e.tar.gz code-e9b5f2c6e25423fa492d3c5648be9db9ed4f6b2e.tar.bz2 code-e9b5f2c6e25423fa492d3c5648be9db9ed4f6b2e.zip |
Fail gracefully if attempt to load files fails
-rw-r--r-- | log-fourier_integrator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index fe0751f..0a181d0 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -118,7 +118,9 @@ int main(int argc, char* argv[]) { Ȓₜ₋₁[n] = (Real)1.0 / (μ₀ + II * fft.ν(n)); } } else { - logFourierLoad(Cₜ₋₁, Rₜ₋₁, Ĉₜ₋₁, Ȓₜ₋₁, p, s, λ, τ₀, β₀, log2n, Δτ, logShift); + if (!logFourierLoad(Cₜ₋₁, Rₜ₋₁, Ĉₜ₋₁, Ȓₜ₋₁, p, s, λ, τ₀, β₀, log2n, Δτ, logShift)) { + return 1; + } μₜ₋₁ = estimateZ(fft, Cₜ₋₁, Ĉₜ₋₁, Rₜ₋₁, Ȓₜ₋₁, p, s, λ, τ₀, β₀); } |