--- branches/development/src/nonbonded/Sticky.cpp 2011/04/30 02:54:02 1554 +++ branches/development/src/nonbonded/Sticky.cpp 2011/06/14 20:41:44 1582 @@ -191,7 +191,7 @@ namespace OpenMD { if (!initialized_) initialize(); map, StickyInteractionData>::iterator it; - it = MixingMap.find(*(idat.atypes)); + it = MixingMap.find(idat.atypes); if (it != MixingMap.end()) { StickyInteractionData mixer = (*it).second; @@ -343,7 +343,7 @@ namespace OpenMD { } *(idat.vpair) += 0.5*(v0*s*w + v0p*sp*wp); - idat.pot[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ; + (*(idat.pot))[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ; // do the torques first since they are easy: // remember that these are still in the body-fixed axes