You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our config ymls have a reasonable field for this in convergence_strategy.fraction that is probably intended to set what fraction of cells you want to be converged before accepting that iteration.
Instead, tardis just checks against threshold again, which is what you set to specify what the convergence criterion for each shell should be.
This basically means, if you say you want your shells to be converged to 5% or better, then you're ALSO only asking 5% of the shells to converge. Which has to be wrong.
I'd like to work on this. The fix looks like reading convergence_strategy.fraction in ConvergenceSolver and comparing fraction_converged against it instead of threshold. Since this changes when runs are considered converged, it will likely shift the regression data. Is it OK to go ahead with that behavior change?
Hi I'd like to help investigate this issue. I'll trace how convergence_strategy.fraction is passed into ConvergenceSolver and check the existing tests before proposing a fix. I'll also look into the expected regression-test changes to make sure the updated convergence behaviour is covered.
I'll step back from this one, feel free to take it. For whoever picks it up: convergence_strategy.fraction isn't read anywhere in the code any more; release-2023.01.11 compared against it in Simulation._get_convergence_status.
I traced this back to the older convergence logic: the converged-shell fraction used to be compared against convergence_strategy.fraction, while the current code compares it against self.threshold.
The existing test only covers all/none converged, so it misses the partially converged case.
One question: should exactly fraction count as converged? The old code used >, while the config description sounds closer to >=.
Activity
anshuman83-40 commentedon Oct 9, 2026
I'd like to work on this. The fix looks like reading
convergence_strategy.fractioninConvergenceSolverand comparingfraction_convergedagainst it instead ofthreshold. Since this changes when runs are considered converged, it will likely shift the regression data. Is it OK to go ahead with that behavior change?shabanali53216-gif commentedon Oct 12, 2026
Hi I'd like to help investigate this issue. I'll trace how
convergence_strategy.fractionis passed intoConvergenceSolverand check the existing tests before proposing a fix. I'll also look into the expected regression-test changes to make sure the updated convergence behaviour is covered.anshuman83-40 commentedon Oct 12, 2026
I'll step back from this one, feel free to take it. For whoever picks it up:
convergence_strategy.fractionisn't read anywhere in the code any more;release-2023.01.11compared against it inSimulation._get_convergence_status.bhabishnu commentedon Oct 25, 2026
I traced this back to the older convergence logic: the converged-shell fraction used to be compared against
convergence_strategy.fraction, while the current code compares it againstself.threshold.The existing test only covers all/none converged, so it misses the partially converged case.
One question: should exactly
fractioncount as converged? The old code used>, while the config description sounds closer to>=.andrewfullard commentedon Nov 24, 2026
Fixed by #3833