I have tried to do it using the following procedure, but it does not work.
Code: Select all
OpenMM::Continuous1DFunction* func = (OpenMM::Continuous1DFunction*) &(Custom*Force -> getTabulatedFunction(0));
func -> setFunctionParameters(new_value, min, max);
Thanks,
Xinqiang