This work presents a new high performance open-source numerical code, namely SPectral Elements in Elastodynamics with Discontinuous Galerkin, to approach seismic wave propagation analysis in viscoelastic heterogeneous three-dimensional media on both local and regional scale. Based on non-conforming high-order techniques, such as the discontinuous Galerkin spectral approximation, along with efficient and scalable algorithms, the code allows one to deal with a non-uniform polynomial degree distribution as well as a locally varying mesh size. Validation benchmarks are illustrated to check the accuracy, stability, and performance features of the parallel kernel, whereas illustrative examples are discussed to highlight the engineering applications of the method. The proposed method turns out to be particularly useful for a variety of earthquake engineering problems, such as modeling of dynamic soil structure and site-city interaction effects, where accounting for multiscale wave propagation phenomena as well as sharp discontinuities in mechanical properties of the media is crucial.whereas the matrix A associated to the bilinear form A. , / defined in (12) is such that for i, j D 1, : : : , D it holds A`k ij WD A.ˆj ,ˆk i / NI , for k,`D 1, .., 3.Now, we define V WD P U the vector of nodal velocities, we prescribe initial conditions U.0/ D u 0 and V.0/ D u 1 and we consider the system (13). Let us now subdivide the interval .0, T into N subintervals of amplitude t D T =N and set t n D nt , for n D 1, : : : , N .