--- trunk/src/nonbonded/SwitchingFunction.cpp 2013/06/16 15:15:42 1879 +++ trunk/src/nonbonded/SwitchingFunction.cpp 2013/07/01 21:09:37 1895 @@ -159,9 +159,7 @@ namespace OpenMD { } else { in_switching_region = true; r = sqrt(r2); - pair result = switchSpline_->getValueAndDerivativeAt(r); - sw = result.first; - dswdr = result.second; + switchSpline_->getValueAndDerivativeAt(r, sw, dswdr); } } return in_switching_region;