The phase flow method was originally introduced in [28] which can efficiently compute the autonomous ordinary differential equations. In [13], it was generalized to solve the Hamiltonian system where the Hamiltonian contains discontinuous functions, for example discontinuous potential or wave speed. However, both these works require the flow map constructed… (More)