A stable time-dependent mesh method to analyze the linear advection-diffusion equation