I see. Mybe it's better to change the order of indices of the other partition as
0, 2, 3, 4, 6, 7
Although these local indices do not influence the element related calculations.