#include <stdarg.h>
#include "base/cs_defs.h"
#include "base/cs_time_step.h"
Go to the source code of this file.
◆ cs_time_control_func_t
| typedef bool() cs_time_control_func_t(const cs_time_step_t *ts, void *input) |
Function pointer to a time control function.
Each function of this sort may be used to determine whether a given set of operations (such as variable or property updates) should be done at the current time step.
- Parameters
-
| [in] | ts | current time step structure |
| [in] | input | pointer to optional (untyped) value or structure, or NULL. |
- Returns
- true if active at given time step, false otherwise
◆ cs_time_control_type_t
| Enumerator |
|---|
| CS_TIME_CONTROL_TIME_STEP | control based on time step
|
| CS_TIME_CONTROL_TIME | control based on simulated time
|
| CS_TIME_CONTROL_FUNCTION | control based on function
|
◆ cs_time_control_copy()
Copy contents of a cs_time_control to another instance.
- Parameters
-
| [in] | src | Instance to copy data from |
| [out] | dst | Instance to copy data to |
◆ cs_time_control_copy_from_default()
Copy contents of the default cs_time_control to another instance.
- Parameters
-
| [out] | tc | Instance to copy data to |
◆ cs_time_control_get_description()
| void cs_time_control_get_description |
( |
const cs_time_control_t * |
tc, |
|
|
char * |
desc, |
|
|
size_t |
desc_size |
|
) |
| |
◆ cs_time_control_init_by_time_step()
| 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 |
|
) |
| |
◆ cs_time_control_is_active()