1 #ifndef __CS_TIME_CONTROL_H__
2 #define __CS_TIME_CONTROL_H__
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
#define END_C_DECLS
Definition: cs_defs.h:515
cs_time_control_type_t
Definition: cs_time_control.h:84
@ CS_TIME_CONTROL_FUNCTION
Definition: cs_time_control.h:88
@ CS_TIME_CONTROL_TIME
Definition: cs_time_control.h:87
@ CS_TIME_CONTROL_TIME_STEP
Definition: cs_time_control.h:86
bool cs_time_control_is_active(cs_time_control_t *tc, const cs_time_step_t *ts)
Definition: cs_time_control.c:154
bool() cs_time_control_func_t(const cs_time_step_t *ts, void *input)
Function pointer to a time control function.
Definition: cs_time_control.h:76
void cs_time_control_get_description(const cs_time_control_t *tc, char *desc, size_t desc_size)
Definition: cs_time_control.c:338
void cs_time_control_init_by_time_step(cs_time_control_t *tc, int nt_start, int nt_end, int nt_interval, bool at_start, bool at_end)
Definition: cs_time_control.c:232
void cs_time_control_init_by_time(cs_time_control_t *tc, double t_start, double t_end, double t_interval, bool at_start, bool at_end)
Definition: cs_time_control.c:268
void cs_time_control_init_by_func(cs_time_control_t *tc, cs_time_control_func_t *control_func, void *control_input, bool at_start, bool at_end)
Definition: cs_time_control.c:309
Definition: cs_time_control.h:96
bool current_state
Definition: cs_time_control.h:126
double interval_t
Definition: cs_time_control.h:118
int interval_nt
Definition: cs_time_control.h:117
bool at_first
Definition: cs_time_control.h:103
int end_nt
Definition: cs_time_control.h:112
bool at_end
Definition: cs_time_control.h:104
cs_time_control_type_t type
Definition: cs_time_control.h:100
int current_time_step
Definition: cs_time_control.h:127
double last_t
Definition: cs_time_control.h:130
cs_time_control_func_t * control_func
Definition: cs_time_control.h:121
double start_t
Definition: cs_time_control.h:108
void * control_input
Definition: cs_time_control.h:122
int last_nt
Definition: cs_time_control.h:129
bool at_start
Definition: cs_time_control.h:102
int start_nt
Definition: cs_time_control.h:107
double end_t
Definition: cs_time_control.h:113
time step descriptor
Definition: cs_time_step.h:64