If one spouse abandons the other spouse, the abandoned spouse is entitled to the custody of the minor children, unless the district court, upon application for that purpose, otherwise directs, or unless a custody decree is entered in accordance with chapter 598B. In this section "abandon" does not include:
Iowa Code § 597.15
85 Acts, ch 18, §1; 99 Acts, ch 103, §43