Implemented periodic BC, smooth sin IC, 1D gpu_ptr for pinned memory