Shock formation by characteristic intersection (source code)

= Shock formation by characteristic intersection

A smooth compressive simple wave forms a shock when characteristics first intersect. If characteristics are parametrized by their emission time $\tau$, the first shock occurs at the minimum positive time for which $\partial x(\tau,t)/\partial\tau=0$.