forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13136 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4e8c2824e3
commit
392342bb02
|
@ -352,6 +352,7 @@ int FixAtomSwap::attempt_semi_grand()
|
|||
comm->forward_comm_fix(this);
|
||||
}
|
||||
|
||||
if (force->kspace) force->kspace->qsum_qsq();
|
||||
double energy_after = energy_full();
|
||||
|
||||
int success = 0;
|
||||
|
@ -379,6 +380,7 @@ int FixAtomSwap::attempt_semi_grand()
|
|||
atom->type[i] = itype;
|
||||
if (atom->q_flag) atom->q[i] = qtmp;
|
||||
}
|
||||
if (force->kspace) force->kspace->qsum_qsq();
|
||||
energy_stored = energy_before;
|
||||
|
||||
if (unequal_cutoffs) {
|
||||
|
|
Loading…
Reference in New Issue