DG fem for 1D advection equation

Consider dolfin_dg/demo/dolfinx/advection/dg_linear_advection.py at master · nate-sime/dolfin_dg · GitHub within the dolfin_dg library by @nate

It’s in 2D, but it shouldn’t be difficult to change it in 1D.

For future reference, please read Read before posting: How do I get my question answered? and in particular consider posting the code that you tried to write on your own.