variable was incorrectly used

Runtime error   ::   NameError: name 'accep_rate' is not defined
This commit is contained in:
Ravindra Shinde 2021-02-02 15:30:11 +01:00 committed by GitHub
parent 4df30f51c0
commit 65efa3a248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def MonteCarlo(a,nmax,dt):
d2_old = d2_new
psi_old = psi_new
return energy/nmax, accep_rate/nmax
return energy/nmax, N_accep/nmax
# Run simulation