A time marching, finite area calculation of general quasi-one-dimensional flows