1D gas dynamic code.