TDMA used on csfl-lib-1.0 has two stopping criteria.
First: the linear system is solved, a difference between the current and previous iteration is done, giving us a residue, than this residue is compared with a tolerance and the iteration will stop provided that residue is smaller than tolerance.
The residue mentioned previously is given by: