Except as provided in section
1414 of title
10, any person who is receiving pay pursuant to any provision of law providing retired or retirement pay to persons in the Armed Forces, or as a commissioned officer of the National Oceanic and Atmospheric Administration or of the Public Health Service, and who would be eligible to receive pension or compensation under the laws administered by the Secretary if such person were not receiving such retired or retirement pay, shall be entitled to receive such pension or compensation upon the filing by such person with the department by which such retired or retirement pay is paid of a waiver of so much of such person’s retired or retirement pay as is equal in amount to such pension or compensation. To prevent duplication of payments, the department with which any such waiver is filed shall notify the Secretary of the receipt of such waiver, the amount waived, and the effective date of the reduction in retired or retirement pay.