forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13089 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
d3a7ef6598
commit
ca01c0bd97
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue