update function.f90

Add an option “smooth” into Init_NonUniform and Init