This code is meant as a supplement to  , and is an implementation of a moving mesh energy preserving solver for the Korteweg-de Vries equation using the Average Vector Field (AVF) discrete gradient in time and finite elements in space.
 Eidnes, Sølve, Brynjulf Owren, and Torbjørn Ringholm. "Adaptive energy preserving methods for partial differential equations." Advances in Computational Mathematics (2017): 1-25.
Torbjorn Ringholm (2020). tringholm/DGMM-KdV (https://www.github.com/tringholm/DGMM-KdV), GitHub. Retrieved .
Inspired by: Legendre-Gauss Quadrature Weights and Nodes