<<initialize model definition>>=
/* requires int num_param_args and char **param_args in the current scope
* usage:
- * INIT_MODEL("folded", folded_model, folded_params);
+ * INIT_MODEL("folded", folded_model, folded_param_string, folded_params);
* defined as a macro, so it can work on both tension_model_getopt_t and k_model_getopt_t types.
*/
#define INIT_MODEL(role, model, param_string, param_pointer) \
if (flags & VFLAG) {
printf("#initializing model %s with parameters %s\n", model->name, model->params);
}
- INIT_MODEL("utility", model, params);
+ INIT_MODEL("utility", model, model->params, params);
tdata.group = NULL;
push(&tdata.group, params, 1);
tdata.env = &env;
if (flags & VFLAG) {
printf("#initializing model %s with parameters %s\n", model->name, model->params);
}
- INIT_MODEL("utility", model, params);
+ INIT_MODEL("utility", model, model->params, params);
switch (mode) {
case M_K_OF_F :
if (model->k == NULL) {