1D Solver for Convection-Diffusion Equations