Variable time-step method with coordinate transformation