RealOpenMM**forceData=const_cast<RealOpenMM**>(((ReferenceFloatStreamImpl&)forces.getImpl()).getData());// Reference code needs to be made const correct
if(dynamics==0||stepSize!=prevStepSize){
// Recreate the computation objects with the new parameters.