Add residual function to sweeper, echo maxvort and res in NS example.