|
Robotran C Documentation
|
Go to the documentation of this file.
13 #ifdef __cplusplus // in case the function is called from a C++ file
54 int start,
int number);
User output auto-update.
Definition: mbs_output_struct.h:17
double * get_output_vector_ptr_auto(AutoOutput *auto_output, int index)
get the pointer to the output vector at the requested index
Definition: auto_output.c:518
#define MBS_INFO_FAILURE
Definition: mbs_define.h:32
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
static AutoOutput * auto_output
Definition: set_output.c:22
char * get_output_vector_label(int index)
get the output vector label corresponding to the requested index
Definition: set_output.c:305
int set_mbs_to_output(MbsData *mbs_data)
Set the value of this buffers from MbsData to use another module memory.
Definition: set_output.c:48
int * flag_warning_output_raised
Pointer to the flag indicating wether the warning message has been already printed once.
Definition: mbs_output_struct.h:51
void set_output_nb_new(int nb)
set the number of new user inputs
Definition: set_output.c:362
int get_output_nb()
get the number of user inputs
Definition: set_output.c:325
int set_output_vector_from_id(double *vector, char *label, int output_id)
function called by the user to output the time evolution of a whole vector. It is very similar to set...
Definition: set_output.c:202
int define_output_vector(char *label, int size)
set needed information to handle the specified vector name in the auto_output structure.
Definition: set_output.c:106
int set_output(double value, char *label)
function called by the user to output the time evolution of a value
Definition: set_output.c:136
char * get_output_label(int index)
get the output label corresponding to the requested index
Definition: set_output.c:295
int mbs_disable_indices_save(int **indices)
Disable the indices to save.
Definition: set_output.c:367
int set_output_vector_from_id(double *vector, char *label, int output_id)
function called by the user to output the time evolution of a whole vector. It is very similar to set...
Definition: set_output.c:202
int set_output_value(double value, int val_index, char *label)
function called by the user to output the time evolution of a value in a vector.
Definition: set_output.c:250
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:67
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
double * get_output_vector_ptr(int index)
get the pointer to the output vector at the requested index
Definition: set_output.c:353
int set_output_value_from_id(double value, int val_index, char *label, int output_id)
Definition: set_output.c:265
char * get_output_vector_label_auto(AutoOutput *auto_output, int index)
get the output vector label corresponding to the requested index
Definition: auto_output.c:551
int update_auto_output_partial_vector(AutoOutput *auto_output, double *vector, char *label, int output_id, int start, int number)
update auto_output when a 'set_output_partial_vector' is encountered.
Definition: auto_output.c:267
set_mbs_to_output_ptr user_synch_outputs
Definition: mbs_data.h:192
int update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:166
void free_set_output()
release memory of auto_output
Definition: set_output.c:118
int define_output_vector(char *label, int size)
set needed information to handle the specified vector name in the auto_output structure.
Definition: set_output.c:106
int get_output_vector_size(int index)
get the output vector size corresponding to the requested index
Definition: set_output.c:316
int get_output_nb_new()
get the number of new user inputs
Definition: set_output.c:343
int set_output_verbose
1 if we want to print messages, 1 is the default. (0 no messages)
Definition: set_output.c:25
int set_output_value_from_id(double value, int val_index, char *label, int output_id)
Definition: set_output.c:265
int mbs_set_indices_save(int **target, int size, int *indices)
Resize the targeted array to set the provided indices to be saved.
Definition: set_output.c:418
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
int set_output_to_mbs(MbsData *mbs_data, int verbosity)
Set the address of this buffers in MbsData to expose memory + synchronize verbosity.
Definition: set_output.c:27
char * get_output_label(int index)
get the output label corresponding to the requested index
Definition: set_output.c:295
int mbs_resize_indices_save(int **indices, int size)
Resize the indice to be saved.
Definition: set_output.c:380
void reset_flag_output()
reset the flag_output to 0. Useful when running several simulation in a row with different save2file ...
Definition: set_output.c:77
double get_output_value_auto(AutoOutput *auto_output, int index)
get the output value corresponding to the requested index
Definition: auto_output.c:501
int set_mbs_to_output(MbsData *mbs_data)
Set the value of this buffers from MbsData to use another module memory.
Definition: set_output.c:48
struct Functions::@4 user
int nb_new_outputs
Number of new user outputs discovered during this time step.
Definition: mbs_output_struct.h:39
int update_auto_output_vector(AutoOutput *auto_output, double *vector, char *label, int output_id)
update auto_output when a 'set_output_vector' is encountered
Definition: auto_output.c:219
AutoOutput * init_auto_output(int max_nb)
initialize the AutoOutput structure
Definition: auto_output.c:24
int out_vector_nb
Current number of user outputs vectors.
Definition: mbs_output_struct.h:21
int update_auto_output_value(AutoOutput *auto_output, double value, int val_index, char *label, int output_id)
update auto_output when a 'set_output_value' is encountered It can take the label and/or the output_i...
Definition: auto_output.c:405
double get_output_value(int index)
get the output value corresponding to the requested index
Definition: set_output.c:285
char * get_output_label_auto(AutoOutput *auto_output, int index)
get the output label corresponding to the requested index
Definition: auto_output.c:535
int get_output_vector_size_auto(AutoOutput *auto_output, int index)
get the output vector size corresponding to the requested index
Definition: auto_output.c:568
int mbs_disable_indices_save(int **indices)
Disable the indices to save.
Definition: set_output.c:367
#define MSG_PRE
Definition: set_output.c:20
AutoOutput ** auto_output
Pointer to the pointer of the user outputs.
Definition: mbs_output_struct.h:46
functions used to automatically update the user output values
int set_output_vector(double *vector, char *label)
function called by the user to output the time evolution of a whole vector.
Definition: set_output.c:167
int get_output_vector_nb()
get the number of user vector inputs
Definition: set_output.c:334
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:130
Functions fct
Structure to store the pointer to the project-specific functions.
Definition: mbs_data.h:426
int set_output_value(double value, int val_index, char *label)
function called by the user to output the time evolution of a value in a vector.
Definition: set_output.c:250
int set_output_partial_vector_from_id(double *vector, char *label, int output_id, int start, int number)
Set part of a vector into a buffer (from its id).
Definition: set_output.c:221
int out_nb
Current number of user outputs.
Definition: mbs_output_struct.h:19
int get_output_nb_new()
get the number of new user inputs
Definition: set_output.c:343
set_output function called by the user to output his own variables
int get_output_nb()
get the number of user inputs
Definition: set_output.c:325
int set_output_partial_vector_from_id(double *vector, char *label, int output_id, int start, int number)
Set part of a vector into a buffer (from its id).
Definition: set_output.c:221
void set_output_nb_new(int nb)
set the number of new user inputs
Definition: set_output.c:362
Definition: mbs_data.h:247
int set_output_vector(double *vector, char *label)
function called by the user to output the time evolution of a whole vector.
Definition: set_output.c:167
int get_output_vector_size(int index)
get the output vector size corresponding to the requested index
Definition: set_output.c:316
#define MSG_ERR
Definition: set_output.c:19
int get_output_vector_nb()
get the number of user vector inputs
Definition: set_output.c:334
int set_output(double value, char *label)
function called by the user to output the time evolution of a value
Definition: set_output.c:136
void init_set_output(int max_nb_curves)
initialize the static auto_output structure
Definition: set_output.c:85
int * flag_output
Pointer to the flag to indicate whether the outputs are activated (1) or deactived (0).
Definition: mbs_output_struct.h:48
MbsOutputPtr user_outputs
Structure to share outputs between different process/libraries.
Definition: mbs_data.h:432
double get_output_value(int index)
get the output value corresponding to the requested index
Definition: set_output.c:285
int mbs_set_indices_save(int **target, int size, int *indices)
Resize the targeted array to set the provided indices to be saved.
Definition: set_output.c:418
#define MBS_INFO_SUCCESS
Definition: mbs_define.h:30
int mbs_resize_indices_save(int **indices, int size)
Resize the indice to be saved.
Definition: set_output.c:380
void reset_flag_output()
reset the flag_output to 0. Useful when running several simulation in a row with different save2file ...
Definition: set_output.c:77
char * get_output_vector_label(int index)
get the output vector label corresponding to the requested index
Definition: set_output.c:305
void free_set_output()
release memory of auto_output
Definition: set_output.c:118
void init_set_output(int max_nb_curves)
initialize the static auto_output structure
Definition: set_output.c:85
int flag_warning_output_raised
1 if a warning message has already been raised, 0 otherwise
Definition: set_output.c:24
int flag_output
1 if init_set_output was called, 0 otherwise
Definition: set_output.c:23
int * set_output_verbose
1 if we want to print messages, 1 is the default. (0 no messages)
Definition: mbs_output_struct.h:54
double * get_output_vector_ptr(int index)
get the pointer to the output vector at the requested index
Definition: set_output.c:353
int set_output_to_mbs(MbsData *mbs_data, int verbosity)
Set the address of this buffers in MbsData to expose memory + synchronize verbosity.
Definition: set_output.c:27