Go to the documentation of this file.
25 return std::strcmp(a, b) < 0;
35 static void set_an_offset(
int mech_id,
const char* variable_name,
int offset) {
40 const char* variable_name,
44 std::cerr <<
"ERROR : no variable name mapping exist for mechanism id: " << mech_id
49 std::cerr <<
"ERROR : no value associtated to variable name: " << variable_name
55 return &(ml->
data[ix]);
60 int nb_parsed_variables = 0;
61 int current_categorie = 1;
63 if (variable_names[idx]) {
64 set_an_offset(mech_id, variable_names[idx], nb_parsed_variables);
65 nb_parsed_variables++;
#define NB_MECH_VAR_CATEGORIES
bool operator()(char const *a, char const *b) const
void register_all_variables_offsets(int mech_id, SerializedNames variable_names)
std::map< MechId, std::map< VariableName, Offset, cmp_str > > MechNamesMapping
double * get_var_location_from_var_name(int mech_id, const char *variable_name, Memb_list *ml, int node_index)
static void set_an_offset(int mech_id, const char *variable_name, int offset)
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
int get_data_index(int node_index, int variable_index, int mtype, Memb_list *ml)
const char * VariableName
const char ** SerializedNames
static MechNamesMapping mechNamesMapping