+/* Don't forget to update the option description in smx_config when you change this */
+s_surf_model_description_t surf_network_model_description[] = {
+ {"Constant", NULL, surf_network_model_init_Constant},
+ {"CM02", NULL, surf_network_model_init_CM02},
+ {"LegrandVelho", NULL, surf_network_model_init_LegrandVelho},
+#ifdef HAVE_GTNETS
+ {"GTNets", NULL, surf_network_model_init_GTNETS},
+#endif
+#ifdef HAVE_SDP
+ {"SDP", NULL, surf_network_model_init_SDP},
+#endif
+ {"Reno", NULL, surf_network_model_init_Reno},
+ {"Reno2", NULL, surf_network_model_init_Reno2},
+ {"Vegas", NULL, surf_network_model_init_Vegas},
+ {NULL, NULL, NULL} /* this array must be NULL terminated */
+};
+
+s_surf_model_description_t surf_cpu_model_description[] = {
+ {"Cas01", NULL, surf_cpu_model_init_Cas01},
+ {NULL, NULL, NULL} /* this array must be NULL terminated */
+};
+
+s_surf_model_description_t surf_workstation_model_description[] = {
+ {"CLM03", NULL, surf_workstation_model_init_CLM03, create_workstations},
+ {"compound", NULL, surf_workstation_model_init_compound,
+ create_workstations},
+ {"ptask_L07", NULL, surf_workstation_model_init_ptask_L07, NULL},
+ {NULL, NULL, NULL} /* this array must be NULL terminated */
+};
+
+void update_model_description(s_surf_model_description_t * table,
+ const char *name, surf_model_t model)
+{
+ int i = find_model_description(table, name);
+ table[i].model = model;
+}
+
+int find_model_description(s_surf_model_description_t * table,
+ const char *name)