lattice_mc
lattice_mc copied to clipboard
bug in is_periodically_contiguous( self ):
Bug in is_periodically_contiguous:
Returns True for a 2 site (and other sizes) cluster in the centre of the lattice that doesn't connect across the boundary, as the sites are both at the edges and neigbouring one another.
Good spot. Now that I can see it, it's obvious that the original method will give the wrong result for a 2-site cluster.
I've added a (failing) test for this case. bd5ffb38010e5b355491bc9b9fe49c2aa2fc0dfe