Discrete and Continuous Green Energy on Compact Manifolds