- return res;
-} /* end_of_test_all */
-
-
-/** Main function */
-int main(int argc, char *argv[])
-{
- MSG_error_t res = MSG_OK;
-
-#ifdef _MSC_VER
- unsigned int prev_exponent_format =
- _set_output_format(_TWO_DIGIT_EXPONENT);
-#endif
-
- MSG_global_init(&argc, argv);
-
-
- if (argc != 3) {
- CRITICAL1("Usage: %s platform_file deployment_file <model>\n",
- argv[0]);
- CRITICAL1
- ("example: %s msg_platform.xml msg_deployment.xml KCCFLN05_Vegas\n",
- argv[0]);
- exit(1);
- }
-
- /* Options for the workstation/model:
-
- KCCFLN05 => for maxmin
- KCCFLN05_proportional => for proportional (Vegas)
- KCCFLN05_Vegas => for TCP Vegas
- KCCFLN05_Reno => for TCP Reno
- */
- //MSG_config("workstation/model", argv[3]);
-
- res = test_all(argv[1], argv[2]);
-
- INFO1("Total simulation time: %le", MSG_get_clock());
-
- MSG_clean();
-
-#ifdef _MSC_VER
- _set_output_format(prev_exponent_format);
-#endif
-
- if (res == MSG_OK)
- return 0;
- else
- return 1;
-} /* end_of_main */