Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include "Time/TimeStepId.hpp"
7 :
8 : namespace SelfStart {
9 : /// Reports whether the `time_id` is during self start
10 : ///
11 : /// This currently assumes that the slab number of the `time_id` will be
12 : /// negative if and only if self-start is in progress. If self start is
13 : /// modified to alter that behavior, this utility must also be modified.
14 1 : bool is_self_starting(const TimeStepId& time_id);
15 :
16 : /// Returns whether the result of the step from \p time_id to \p
17 : /// next_time_id is unused because of a self-start reset.
18 1 : bool step_unused(const TimeStepId& time_id, const TimeStepId& next_time_id);
19 : } // namespace SelfStart
|