Numerical method in underwater shock simulations