A Magnetostatic Model for a Compressible Star.