ndiffusion.ConvergenceWarning

exception ndiffusion.ConvergenceWarning

Issued when a solver stops at its iteration cap before meeting its tolerance. The result’s converged flag records the same thing. Filter it like any warning, e.g. warnings.simplefilter(‘error’, ndiffusion.ConvergenceWarning).