SELF-CONSISTENT THEORY OF THE MAGNETOTAIL.