Density limit studies in the tokamak and the reversed-field pinch. (18th March 2015)