| 48 | \*---------------------------------------------------------------------------*/ |
| 49 | |
| 50 | class timeControl |
| 51 | { |
| 52 | public: |
| 53 | |
| 54 | //- The time control options |
| 55 | enum timeControls |
| 56 | { |
| 57 | ocTimeStep, //!< execution is coupled to the time-step |
| 58 | ocWriteTime, //!< execution is coupled to the write-time |
| 59 | ocOutputTime, //!< execution is coupled to the output-time |
| 60 | ocAdjustableRunTime, //!< Adjust time step for execution |
| 61 | ocRunTime, //!< run time for execution |
| 62 | ocClockTime, //!< clock time for execution |
| 63 | ocCpuTime, //!< cpu time for execution |
| 64 | ocNone //!< no execution |
| 65 | }; |
| 66 | |
| 67 | |
| 68 | private: |
| 69 | |
| 70 | // Private data |
| 71 | |
| 72 | //- Time object |
| 73 | const Time& time_; |
| 74 | |
| 75 | //- Prefix |
| 76 | const word prefix_; |
| 77 | |
| 78 | //- String representation of timeControls enums |
| 79 | static const NamedEnum<timeControls, 8> timeControlNames_; |
| 80 | |
| 81 | //- Type of time control |
| 82 | timeControls timeControl_; |
| 83 | |
| 84 | //- Execution interval steps for timeStep mode |
| 85 | // a value <= 1 means execute at every time step |
| 86 | label intervalSteps_; |
| 87 | |
| 88 | //- Execution interval |
| 89 | scalar interval_; |
| 90 | |
| 91 | //- Index of previous execution |
| 92 | label executionIndex_; |
| 93 | |
| 94 | |
| 95 | // Private Member Functions |
| 96 | |
| 97 | //- Disallow default bitwise copy construct and assignment |
| 98 | timeControl(const timeControl&); |
| 99 | |
| 100 | //- Disallow default bitwise assignment |
| 101 | void operator=(const timeControl&); |
| 102 | |
| 103 | |
| 104 | public: |
| 105 | |
| 106 | // Constructors |
| 107 |
no outgoing calls
no test coverage detected