dg algorithm volume terms