Background:
I have read that vector fields which are the gradients of some scalar field cannot have periodic orbits. See, e.g., (1)(2). This probably expresses the fact from vector calculus that $\nabla \times \nabla f = 0$.
In particular, this direction might also follow from De Rham cohomology because the existence of a periodic orbit might allow one to smoothly define the vector field on a non-simply connected region (i.e. by puncturing out some point contained within the periodic orbit).
Question: However, is the converse direction also true? I.e., if a vector field has no periodic orbits, then is it the gradient of some scalar field, or equivalently (contrapositive), if a vector field is not the gradient of any scalar field, then must it have at least one periodic orbit?
Context: The analogous statement is true for discrete vector fields, see for example Theorem 1.8 on p.8 of Forman's paper "Morse Theory and Evasiveness". Implicitly appealing to this equivalence, Ghrist defines, on p.150 of Elementary Applied Topology, a discrete gradient field to be a discrete vector field with no periodic orbits.
Thus, I wonder whether or not this is a new feature of discrete dynamical systems, or if this equivalence is actually the same as in the classical case of smooth dynamical systems. A pointer to a reference will suffice for an answer; a complete counterexample or proof is not needed.