261 |
|
RealType myDeriv = 0.0; |
262 |
|
RealType myDerivC = 0.0; |
263 |
|
|
264 |
< |
ros = *(idat.rij) * sigmai; |
265 |
< |
|
266 |
< |
cerr << "ros = " << ros << "\n"; |
264 |
> |
ros = *(idat.rij) * sigmai; |
265 |
|
|
266 |
|
getLJfunc(ros, myPot, myDeriv); |
267 |
|
|
278 |
|
myDerivC = 0.0; |
279 |
|
} |
280 |
|
|
283 |
– |
cerr << "myPot = " << myPot << "\n"; |
284 |
– |
cerr << "myPotC = " << myPotC << "\n"; |
285 |
– |
cerr << "myDerivC = " << myDerivC << "\n"; |
286 |
– |
cerr << "epsilon = " << epsilon << "\n"; |
287 |
– |
cerr << "vdwm = " << *(idat.vdwMult) << "\n"; |
288 |
– |
cerr << "sw = " << *(idat.sw) << "\n"; |
281 |
|
RealType pot_temp = *(idat.vdwMult) * epsilon * (myPot - myPotC); |
282 |
|
*(idat.vpair) += pot_temp; |
283 |
|
|
284 |
|
RealType dudr = *(idat.sw) * *(idat.vdwMult) * epsilon * (myDeriv - |
285 |
< |
myDerivC)*sigmai; |
286 |
< |
|
295 |
< |
(idat.pot)[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; |
285 |
> |
myDerivC)*sigmai; |
286 |
> |
(*(idat.pot))[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; |
287 |
|
*(idat.f1) = *(idat.d) * dudr / *(idat.rij); |
288 |
|
} |
289 |
|
return; |