Fixed sign error on mu for semigrand variant
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user