There the cell_centroids where still treated like double*. This patch uses the UgGridHelpers instead.