--- branches/development/src/nonbonded/LJ.cpp 2011/05/27 16:45:44 1571 +++ branches/development/src/nonbonded/LJ.cpp 2011/06/14 20:41:44 1582 @@ -261,7 +261,7 @@ namespace OpenMD { RealType myDeriv = 0.0; RealType myDerivC = 0.0; - ros = *(idat.rij) * sigmai; + ros = *(idat.rij) * sigmai; getLJfunc(ros, myPot, myDeriv); @@ -282,9 +282,8 @@ namespace OpenMD { *(idat.vpair) += pot_temp; RealType dudr = *(idat.sw) * *(idat.vdwMult) * epsilon * (myDeriv - - myDerivC)*sigmai; - - (idat.pot)[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; + myDerivC)*sigmai; + (*(idat.pot))[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp; *(idat.f1) = *(idat.d) * dudr / *(idat.rij); } return;