RkSolver supports boundary function.