Inflow boundary condition *u*(0, *t*) = *g*(*t*) at *x* = 0
are specified by the user in the routines g.f and
bc1.f by setting the ghost cells at the left edge to:

*Q*^{n}_{0} = *g*(*t* + Δ*x* ⁄ 2*u*)

*Q*^{n}_{ − 1} = *g*(*t* + 3Δ*x* ⁄ 2*u*)

Example [book/chap7/advinflow] to accompany the book Finite Volume Methods for Hyperbolic Problems by R. J. LeVeque.

Converted to Clawpack 5.0 form in 2013.