Use the number of MPI ranks, not some guess when checking if the regridding is complete.
Previously this could miss ranks out the partition if not all elements of oldnodeIDs were visited, possible when the ranks and numbers of cells are relatively small.
Fixes #707 (closed)