Given the data to processor mappings calculated by the first step of the algorithm, the second step restructures the arrays so that all the data accessed by the same processor are contiguous in the shared address space.