Skip to content

Commit

Permalink
Merge pull request sxs-collaboration#5708 from wthrowe/EvenlySpaced_docs
Browse files Browse the repository at this point in the history
Improve documentation of EvenlySpaced TimeSequence
  • Loading branch information
kidder authored Jan 19, 2024
2 parents 494ca07 + cee4458 commit c9e23bd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Time/TimeSequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ class TimeSequence : public PUP::able {
///
/// Holds all the TimeSequences
namespace TimeSequences {
/// A sequence of evenly spaced times.
/*!
* \brief A sequence of evenly spaced times.
*
* The sequence of times
* \f{equation}{
* n \times \mathrm{Interval} + \mathrm{Offset}
* \f}
* for all integers $n$.
*/
template <typename T>
class EvenlySpaced : public TimeSequence<T> {
public:
Expand All @@ -72,7 +80,8 @@ class EvenlySpaced : public TimeSequence<T> {
using type = T;
};

static constexpr Options::String help = "A sequence of evenly spaced times.";
static constexpr Options::String help =
"The sequence of times n * Interval + Offset for all integers n.";
using options = tmpl::list<Interval, Offset>;

explicit EvenlySpaced(T interval, T offset = 0,
Expand Down

0 comments on commit c9e23bd

Please sign in to comment.