Contains the time_based_controller_t
type.
|
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...
|
|
interface | assignment(=) |
|
◆ time_based_controller_assignment()
◆ time_based_controller_check()
logical function time_based_controller::time_based_controller_check |
( |
class(time_based_controller_t), intent(inout) |
this, |
|
|
real(kind=rp), intent(in) |
t, |
|
|
integer, intent(in) |
tstep, |
|
|
logical, intent(in), optional |
force |
|
) |
| |
|
private |
- 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()
subroutine time_based_controller::time_based_controller_init |
( |
class(time_based_controller_t), intent(inout) |
this, |
|
|
real(kind=rp), intent(in) |
end_time, |
|
|
character(len=*), intent(in) |
control_mode, |
|
|
real(kind=rp), intent(in) |
control_value |
|
) |
| |
|
private |
- 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()
subroutine time_based_controller::time_based_controller_register_execution |
( |
class(time_based_controller_t), intent(inout) |
this | ) |
|
|
private |
◆ time_based_controller_set_counter()
subroutine time_based_controller::time_based_controller_set_counter |
( |
class(time_based_controller_t), intent(inout) |
this, |
|
|
real(kind=rp), intent(in) |
t |
|
) |
| |
|
private |