//keep a pointer to all surf running tasks.
#define NTASKS 1500
-int bool_printed = 0;
double start_time, end_time, elapsed_time;
double gl_data_size[NTASKS];
msg_task_t gl_task_array[NTASKS];
int main(int argc, char *argv[])
{
- msg_error_t res = MSG_OK;
- bool_printed = 0;
-
MSG_init(&argc, argv);
xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n"
"\tExample: %s platform.xml deployment.xml\n", argv[0], argv[0]);
MSG_launch_application(argv[2]);
- res = MSG_main();
+ msg_error_t res = MSG_main();
return res != MSG_OK;
}
int main(int argc, char **argv)
{
- int recv_buff, err, size, rank, i;
+ int recv_buff, err, size, rank;
MPI_Status status;
/* Initialize MPI */
if (rank == 0) {
printf("MPI_ISend / MPI_IRecv Test \n");
- for(i=0; i < size - 1; i++){
+ for(int i=0; i < size - 1; i++){
MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
printf("Message received from %d\n", recv_buff);
}
static void new_transition(char* id, xbt_automaton_exp_label_t label)
{
- xbt_automaton_state_t state_dst = NULL;
new_state(id, 0);
- state_dst = xbt_automaton_state_exists(parsed_automaton, id);
+ xbt_automaton_state_t state_dst = xbt_automaton_state_exists(parsed_automaton, id);
xbt_automaton_state_t state_src = xbt_automaton_state_exists(parsed_automaton, state_id_src);
//xbt_transition_t trans = NULL;
unsigned int cursor;
xbt_log_setting_t setting = NULL;
- int found = 0;
XBT_DEBUG("Initializing category '%s' (firstChild=%s, nextSibling=%s)", category->name,
(category->firstChild ? category->firstChild->name : "none"),
if (xbt_log_settings) {
xbt_assert(category, "NULL category");
xbt_assert(category->name);
+ int found = 0;
xbt_dynar_foreach(xbt_log_settings, cursor, setting) {
xbt_assert(setting, "Damnit, NULL cat in the list");