| 463 |
|
|
| 464 |
|
if (!initialized_) initialize(); |
| 465 |
|
|
| 466 |
< |
ElectrostaticAtomData data1 = ElectrostaticMap[idat.atypes->first]; |
| 467 |
< |
ElectrostaticAtomData data2 = ElectrostaticMap[idat.atypes->second]; |
| 466 |
> |
ElectrostaticAtomData data1 = ElectrostaticMap[idat.atypes.first]; |
| 467 |
> |
ElectrostaticAtomData data2 = ElectrostaticMap[idat.atypes.second]; |
| 468 |
|
|
| 469 |
|
// some variables we'll need independent of electrostatic type: |
| 470 |
|
|
| 909 |
|
} |
| 910 |
|
} |
| 911 |
|
|
| 912 |
< |
idat.pot[ELECTROSTATIC_FAMILY] += epot; |
| 912 |
> |
(*(idat.pot))[ELECTROSTATIC_FAMILY] += epot; |
| 913 |
|
*(idat.f1) += dVdr; |
| 914 |
|
|
| 915 |
|
if (i_is_Dipole || i_is_Quadrupole) |
| 933 |
|
|
| 934 |
|
if (!initialized_) initialize(); |
| 935 |
|
|
| 936 |
< |
ElectrostaticAtomData data1 = ElectrostaticMap[idat.atypes->first]; |
| 937 |
< |
ElectrostaticAtomData data2 = ElectrostaticMap[idat.atypes->second]; |
| 936 |
> |
ElectrostaticAtomData data1 = ElectrostaticMap[idat.atypes.first]; |
| 937 |
> |
ElectrostaticAtomData data2 = ElectrostaticMap[idat.atypes.second]; |
| 938 |
|
|
| 939 |
|
// logicals |
| 940 |
|
|
| 1020 |
|
} |
| 1021 |
|
|
| 1022 |
|
// accumulate the forces and torques resulting from the self term |
| 1023 |
< |
idat.pot[ELECTROSTATIC_FAMILY] += myPot; |
| 1023 |
> |
(*(idat.pot))[ELECTROSTATIC_FAMILY] += myPot; |
| 1024 |
|
*(idat.f1) += dVdr; |
| 1025 |
|
|
| 1026 |
|
if (i_is_Dipole) |