Adding redundant call to sync Intel package arrays with native arrays for methods such as MC that do not need pre_reverse.

This commit is contained in:
W. Michael Brown
2023-06-06 23:56:16 -07:00
parent 0978308f5e
commit bbfd909be6
4 changed files with 15 additions and 23 deletions

View File

@ -1050,13 +1050,7 @@ double FixWidom::energy_full()
if (force->kspace) force->kspace->compute(eflag,vflag);
// unlike Verlet, not performing a reverse_comm() or forces here
// b/c Widom does not care about forces
// don't think it will mess up energy due to any post_force() fixes
// but Modify::pre_reverse() is needed for INTEL
if (modify->n_pre_reverse) modify->pre_reverse(eflag,vflag);
if (modify->n_pre_force) modify->pre_force(vflag);
if (modify->n_post_force_any) modify->post_force(vflag);
// NOTE: all fixes with energy_global_flag set and which
// operate at pre_force() or post_force()