This paper describes an energy-preserving and globally time-reversible code for weakly compressible smoothed particle hydrodynamics (SPH). We do not add any additional dynamics to the Monaghan's original SPH scheme at level of ordinary differential equation, but we show how discretize equations by using a corrected expression density invoking symplectic integrator. Moreover, achieve global-in-t...