1#ifndef CS_TIME_CONTROL_H
2#define CS_TIME_CONTROL_H
105 bool at_start_ =
true,
107 bool at_first_ =
false
115 bool at_start_ =
true,
117 bool at_first_ =
false
124 bool at_start_ =
true,
126 bool at_first_ =
false
215[[deprecated(
"Use cs_time_control_t constructor instead")]]
void
Definition: cs_time_control.h:92
bool current_state
Definition: cs_time_control.h:169
double interval_t
Definition: cs_time_control.h:161
int interval_nt
Definition: cs_time_control.h:160
bool at_first
Definition: cs_time_control.h:146
bool is_active(const cs_time_step_t *ts)
Definition: cs_time_control.cpp:249
int end_nt
Definition: cs_time_control.h:155
bool at_end
Definition: cs_time_control.h:147
cs_time_control_type_t type
Definition: cs_time_control.h:143
void get_description(char *desc, size_t desc_size) const
Definition: cs_time_control.cpp:338
int current_time_step
Definition: cs_time_control.h:170
double last_t
Definition: cs_time_control.h:173
cs_time_control_func_t * control_func
Definition: cs_time_control.h:164
double start_t
Definition: cs_time_control.h:151
void * control_input
Definition: cs_time_control.h:165
cs_time_control_t()
Definition: cs_time_control.cpp:102
int last_nt
Definition: cs_time_control.h:172
bool at_start
Definition: cs_time_control.h:145
int start_nt
Definition: cs_time_control.h:150
double end_t
Definition: cs_time_control.h:156
time step descriptor
Definition: cs_time_step.h:60
cs_time_control_type_t
Definition: cs_time_control.h:80
@ CS_TIME_CONTROL_FUNCTION
Definition: cs_time_control.h:84
@ CS_TIME_CONTROL_TIME
Definition: cs_time_control.h:83
@ CS_TIME_CONTROL_TIME_STEP
Definition: cs_time_control.h:82
bool cs_time_control_is_active(cs_time_control_t *tc, const cs_time_step_t *ts)
Definition: cs_time_control.cpp:403
void cs_time_control_copy_from_default(cs_time_control_t *tc)
Copy contents of the default cs_time_control to another instance.
Definition: cs_time_control.cpp:514
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:72
void cs_time_control_get_description(const cs_time_control_t *tc, char *desc, size_t desc_size)
Definition: cs_time_control.cpp:456
void cs_time_control_copy(const cs_time_control_t *src, cs_time_control_t *dst)
Copy contents of a cs_time_control to another instance.
Definition: cs_time_control.cpp:477
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.cpp:430