-/* xbt_dynar_foreach(resource_list, i, resource) { */
-/* if(resource==surf_cpu_resource) { */
-/* xbt_dynar_remove_at(resource_list, i, NULL); */
-/* i--; */
-/* continue; */
-/* } */
-/* if(resource==surf_network_resource) { */
-/* xbt_dynar_remove_at(resource_list, i, NULL); */
-/* i--; */
-/* continue; */
-/* } */
-/* } */
+}
+
+#ifdef USE_GTNETS
+/* KF. Use GTNetS for the network. */
+void surf_workstation_resource_init_GTNETS(const char *filename)
+{
+ surf_workstation_resource_init_internal();
+ surf_cpu_resource_init_Cas01(filename);
+ surf_network_resource_init_GTNETS(filename);
+ create_workstations();
+ xbt_dynar_push(resource_list, &surf_workstation_resource);
+}
+#endif
+
+void surf_workstation_resource_init_compound(const char *filename)
+{
+
+ xbt_assert0(surf_cpu_resource,"No CPU resource defined yet!");
+ xbt_assert0(surf_network_resource,"No network resource defined yet!");
+ surf_workstation_resource_init_internal();
+ create_workstations();
+ xbt_dynar_push(resource_list, &surf_workstation_resource);