115 |
|
me2 = atid(atom2) |
116 |
|
#endif |
117 |
|
|
118 |
+ |
|
119 |
|
q1 = ChargeMap(me1)%charge |
120 |
|
q2 = ChargeMap(me2)%charge |
121 |
|
|
145 |
|
fy = dudr * drdy |
146 |
|
fz = dudr * drdz |
147 |
|
|
148 |
+ |
|
149 |
|
#ifdef IS_MPI |
150 |
|
if (do_pot) then |
151 |
|
pot_Row(atom1) = pot_Row(atom1) + vterm*taper*0.5 |
183 |
|
id1 = atom1 |
184 |
|
id2 = atom2 |
185 |
|
#endif |
186 |
+ |
|
187 |
|
|
188 |
|
if (molMembershipList(id1) .ne. molMembershipList(id2)) then |
189 |
< |
|
189 |
> |
|
190 |
|
! because the d vector is the rj - ri vector, and |
191 |
|
! because fx, fy, fz are the force on atom i, we need a |
192 |
|
! negative sign here: |