MHD equations in the atmosphere of the stars