On divorce each of the husband and the wife recovers his or her own property whatever was at the time of getting married or changing the property regime, except when the separate property regime was applied. If there is any remainder [of the property], it shall be allocated according to the provisions of their property regime.