modified specfem2d.smooth