squoct_dist had two errors: First, neighbours were being selected in the wrong directions given the parity of the virtual x co-ordinate. Second, 0 and sz were taken to be neighbouring coordinates mod sz, when in fact sz-1 is the appropriate neighbour. Both of those errors have been expunged.