add smooth (logical, optional) to function

In Init_NonUniform and Init