Based on the thermally activated model,the flux creep process in the case of non-uniform pinning potential and surface pinning potential in nonideal type Ⅱ sup erconductors is studied through computer simulation.Global and local magnetizati on curves are calculated and the logarithmic time dependence of local magnetic i nduction under a constant external field is examined.The results show that the m otion of the flux is much restrained in the non-uniform case and the flux line i s easy to be captured by the strong pinning center.The surface potential has mar ked effect in preventing the flux from going into and leaving the sample.Compare d with the global behavior,the local magnetization is much more sensitive to the non-uniform pinning potential and the magnetic field sweep rate.