A Method for the Numerical Calculation of Hydrodynamic Shocks | Synapse