1-D transport equation solver