Add state-wide settings to WeakForm.
DG Optimizations.
Finish DG optimization.
A fix.