Fixed sign error on mu for semigrand variant

This commit is contained in:
Aidan Thompson
2018-10-02 16:56:27 -06:00
parent 177044cd07
commit 9e9b97231c

View File

@ -377,7 +377,7 @@ int FixAtomSwap::attempt_semi_grand()
int success = 0;
if (i >= 0)
if (random_unequal->uniform() <
exp(-beta*(energy_after - energy_before
exp(beta*(energy_before - energy_after
+ mu[jtype] - mu[itype]))) success = 1;
int success_all = 0;