Flame capturing with an advection–reaction–diffusion model