DG fem for 1D advection equation

Do not repeat the same post twice. I am going to close this in favor of (Help me to rectify the error