converting part_upate kernel. Probably need to do some trilinear interpolation in there.