Geometric integrator for simulations in the canonical ensemble.

Geometric integrator for simulations in the canonical ensemble.