Text this: A radiative equilibrium algorithm for semi-infinite atmospheres.