git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13089 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
pscrozi 2015-02-10 18:08:27 +00:00
parent d3a7ef6598
commit ca01c0bd97
1 changed files with 2 additions and 2 deletions

View File

@ -356,8 +356,8 @@ int FixAtomSwap::attempt_semi_grand()
int success = 0;
if ((i >= 0) and (random_equal->uniform() <
exp(-beta*(energy_after - energy_before) +
delta_mu[jtype] - delta_mu[itype]))) success = 1;
exp(-beta*(energy_after - energy_before
+ delta_mu[jtype] - delta_mu[itype])))) success = 1;
int success_all = 0;
MPI_Allreduce(&success,&success_all,1,MPI_INT,MPI_MAX,world);