Finish implementation of "force Gaussian quadrature for energy"