Commit 9e9b9723 authored by Aidan Thompson's avatar Aidan Thompson
Browse files

Fixed sign error on mu for semigrand variant

parent 177044cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;