Accuracy of finite-difference and finite-element modeling of the scalar and elastic wave equations | Synapse