After you file

The bank will reject the deposit if the name on the account is not the same as the name on the refund.  If that happens the bank will send the refund back to the IRS.  The IRS will then mail a refund check to the address on your tax return.