implicit euler method against flow