WillPugs / stat-mech-monte-carlo

Computer simulation of the Ising model.
0 stars 0 forks source link

1D Energies #10

Closed WillPugs closed 3 years ago

WillPugs commented 3 years ago

The full_sim_1d function when asked to simulate for energies returns a ufunctypeerror for addition in the energy_change_1d function.

I think this is because at some point the names of two variables get mixed up but I cannot find which variables or where this happens (I think it is most likely the grid/strip or idx variable that gets mixed up somehow).

WillPugs commented 3 years ago

Note that the full_sim_2d function is able to simulate energies.

WillPugs commented 3 years ago

It seems to have been fixed after clearing the kernel and rerunning the code.