Contains the time_based_controller_t type.
|
| interface | assignment(=) |
| |
| type | time_based_controller_t |
| | A utility type for determening whether an action should be executed based on the current time value. Used to e.g. control whether we should write a file or execute a simcomp. Note that the nexecutions variable should be incremented externally by calling the register_execution procedure. This is to allow running the the check multiple times at the same time step. More...
|
| |
◆ time_based_controller_assignment()
◆ time_based_controller_check()
- Parameters
-
| t | Time value. |
| tstep | Current timestep. |
| force | Whether to force returning true. Optional. |
- Note
- In the logic,
nsteps being zero corresponds to us not knowing the number of time-steps between executions and thus having to rely on nexecutions. This is done in anticipation of having a variable timestep.
Definition at line 133 of file time_based_controller.f90.
◆ time_based_controller_init()
- Parameters
-
| end_time | The final simulation time. |
| control_mode | The way to interpret the control_value parameter. |
| control_value | The value definining the execution frequency. |
Definition at line 90 of file time_based_controller.f90.
◆ time_based_controller_register_execution()
◆ time_based_controller_set_counter()