I note this changes the initial condition to be non-zero everywhere (and not have any discontinuities), I suppose this is intended.