After you file

Once the tax return has been filed and accepted by the IRS the method of receiving the federal tax refund cannot be changed.

If the direct deposit of the refund is refused by the bank then the refund is sent back to the IRS.  The IRS will then mail a refund check to the address entered on the tax return.