1: \begin{abstract}
2: In this paper a novel contour integral method is proposed for linear convection-diffusion equations. The method is based on the inversion of the Laplace transform
3: and makes use of a contour given by an elliptic arc joined symmetrically to two
4: half-lines. The trapezoidal rule is the chosen integration method for the numerical
5: inversion of the Laplace transform, due to its well-known fast convergence properties
6: when applied to analytic functions. Error estimates are provided as well as careful
7: indications about the choice of several involved parameters. The method selects the
8: elliptic arc in the integration contour by an algorithmic strategy based on the computation of pseudospectral
9: level sets of the discretized differential operator. In this sense the method is general and can be applied to any linear convection-diffusion equation without knowing any \textit{a priori} information about its pseudospectral geometry.
10: Numerical experiments performed on the Black--Scholes ($1D$) and Heston ($2D$)
11: equations show that the method is competitive with other contour integral methods available in the
12: literature.
13: \end{abstract}
14: