diff --git a/include/teqp/algorithms/iteration.hpp b/include/teqp/algorithms/iteration.hpp index 2f4ffcd..6532fbe 100644 --- a/include/teqp/algorithms/iteration.hpp +++ b/include/teqp/algorithms/iteration.hpp @@ -344,7 +344,7 @@ class NRIterator{ // Check whether a stopping condition (either good[complete] or bad[error]) bool stop = false; - const StoppingData data{N, Trho, dTrho, r, nonconstant_indices}; + const StoppingData data{K, Trho, dTrho, r, nonconstant_indices}; for (auto& condition : stopping_conditions){ using s = StoppingConditionReason; auto this_reason = condition->stop(data); @@ -409,7 +409,7 @@ class NRIterator{ // Check whether a stopping condition (either good[complete] or bad[error]) bool stop = false; - const StoppingData data{N, Trho, dTrho, r, nonconstant_indices}; + const StoppingData data{K, Trho, dTrho, r, nonconstant_indices}; for (auto& condition : stopping_conditions){ using s = StoppingConditionReason; auto this_reason = condition->stop(data);