--- branches/development/src/nonbonded/Sticky.cpp 2011/01/05 14:49:05 1536 +++ branches/development/src/nonbonded/Sticky.cpp 2011/04/08 21:25:19 1545 @@ -190,9 +190,8 @@ namespace OpenMD { if (!initialized_) initialize(); - pair key = make_pair(idat.atype1, idat.atype2); map, StickyInteractionData>::iterator it; - it = MixingMap.find(key); + it = MixingMap.find(idat.atypes); if (it != MixingMap.end()) { StickyInteractionData mixer = (*it).second; @@ -378,11 +377,10 @@ namespace OpenMD { return; } - RealType Sticky::getSuggestedCutoffRadius(AtomType* at1, AtomType* at2) { + RealType Sticky::getSuggestedCutoffRadius(pair atypes) { if (!initialized_) initialize(); - pair key = make_pair(at1, at2); map, StickyInteractionData>::iterator it; - it = MixingMap.find(key); + it = MixingMap.find(atypes); if (it == MixingMap.end()) return 0.0; else {