law: 49. Desertion.
  (1) Every person subject to naval law who absents himself from his ship or from the place where his duty requires him to be, with an intention of not returning to such ship or place, or who at any time and under any circumstances when absent from his ship or place of duty does any act which shows that he has an intention of not returning to such ship or place is said to desert.
  (2) Every person who deserts shall,
  (a) if he deserts to the enemy, be punished with death or such other punishment as is hereinafter mentioned; or
  (b) if he deserts under any other circumstances, be punished with imprisonment for a term which may extend to fourteen years or such other punishment as is hereinafter mentioned; and in every such case he shall forfeit all pay, head money, bounty, salvage, prize money and allowances that have been earned by him and all annuities, pensions, gratuities, medals and decorations that may have been granted to him and also all clothes and effects which he may have left on board the ship or the place from which he deserted, unless the tribunal by which he is tried or the Central Government or the Chief of the Naval Staff, otherwise directs.