lattice_mc icon indicating copy to clipboard operation
lattice_mc copied to clipboard

bug in is_periodically_contiguous( self ):

Open connorourke opened this issue 8 years ago • 1 comments

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.

connorourke avatar Oct 19 '17 15:10 connorourke

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

bjmorgan avatar Oct 19 '17 16:10 bjmorgan