  We use closed geodesics to construct and compute Bott-type Morse homology
groups for the energy functional on the loop space of flat $n$-dimensional
tori, $n\ge 1$, and Bott-type Floer cohomology groups for their cotangent
bundles equipped with the natural symplectic structure. Both objects are
isomorpic to the singular homology of the loop space. In an appendix we perturb
the equations in order to eliminate degeneracies and to get to a situation with
nondegenerate critical points only. The (co)homology groups turn out to be
invariant under the perturbation.

Differential Geometry;Differential Geometry