simulatedphysics / MCSM

Monte Carlo for Statistical Mechanics
0 stars 0 forks source link

Fix logic error with Spins on neighboring Lattice Sites #26

Closed obrienpja closed 5 years ago

obrienpja commented 5 years ago

I found a temporary fix for this. I simply placed the Spins on the Lattice first, then set the neighbors afterwards. I am not entirely sure why this worked and the previous code did not, but at least the code is now giving sensible results. The real fix for this issue will be addressed in the redesign of the inheritance relationships.