parallel for the grid_interpolation part