From 293687311d2a8ac866589490033e9245bf599bcd Mon Sep 17 00:00:00 2001 From: Wendi Liu Date: Thu, 15 Jan 2026 13:50:41 +0000 Subject: [PATCH] Remove incorrect assertion on residual L2 norm availability for algo_fixed_relaxation and algo_aitken --- src/samplers/algorithm/algo_aitken.h | 4 ---- src/samplers/algorithm/algo_fixed_relaxation.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/samplers/algorithm/algo_aitken.h b/src/samplers/algorithm/algo_aitken.h index c5cac8e..8a37ac9 100644 --- a/src/samplers/algorithm/algo_aitken.h +++ b/src/samplers/algorithm/algo_aitken.h @@ -172,10 +172,6 @@ template class algo_aitken { assert((((present_iter->first.first - present_res_iter->first.first) < std::numeric_limits::epsilon()) && (present_iter->first.second == present_res_iter->first.second)) || pts_time_res_.empty()); - if (!pts_time_res_.empty()) { - assert(!residual_l2_norm_.empty()); - } - auto pts_relx_value_iter = std::find_if(present_iter->second.begin(), present_iter->second.end(), [focus](std::pair b) { return normsq(focus - b.first) < std::numeric_limits::epsilon(); diff --git a/src/samplers/algorithm/algo_fixed_relaxation.h b/src/samplers/algorithm/algo_fixed_relaxation.h index f6d94ef..9abf5bc 100644 --- a/src/samplers/algorithm/algo_fixed_relaxation.h +++ b/src/samplers/algorithm/algo_fixed_relaxation.h @@ -157,10 +157,6 @@ template class algo_fixed_relaxation { assert((((present_iter->first.first - present_res_iter->first.first) < std::numeric_limits::epsilon()) && (present_iter->first.second == present_res_iter->first.second)) || pts_time_res_.empty()); - if (!pts_time_res_.empty()) { - assert(!residual_l2_norm_.empty()); - } - auto pts_relx_val_iter = std::find_if(present_iter->second.begin(), present_iter->second.end(), [focus](std::pair b) { return normsq(focus - b.first) < std::numeric_limits::epsilon();