Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / examples / msg / trace / test_trace_integration.c
index e42c1e9..057810d 100644 (file)
@@ -18,31 +18,32 @@ int test_trace(int argc, char *argv[]);
 /** test the trace integration cpu model */
 int test_trace(int argc, char *argv[])
 {
-       m_task_t task;
-       double task_comp_size = 2800;
-       double task_prio = 1.0;
+  m_task_t task;
+  double task_comp_size = 2800;
+  double task_prio = 1.0;
 
-       if (argc != 3) {
-               printf("Wrong number of arguments!\nUsage:\n\t1) task computational size in FLOPS\n\t2 task priority\n");
-           exit(1);
-       }
+  if (argc != 3) {
+    printf
+        ("Wrong number of arguments!\nUsage:\n\t1) task computational size in FLOPS\n\t2 task priority\n");
+    exit(1);
+  }
 
-       task_comp_size = atof(argv[1]);
-       task_prio = atof(argv[2]);
+  task_comp_size = atof(argv[1]);
+  task_prio = atof(argv[2]);
 
-       INFO0("Testing the trace integration cpu model: CpuTI");
-       INFO1("Task size: %lf", task_comp_size);
-       INFO1("Task prio: %lf", task_prio);
+  INFO0("Testing the trace integration cpu model: CpuTI");
+  INFO1("Task size: %lf", task_comp_size);
+  INFO1("Task prio: %lf", task_prio);
 
-       /* Create and execute a single task. */
-       task = MSG_task_create("proc 0", task_comp_size, 0, NULL);
-       MSG_task_set_priority(task, task_prio);
-       MSG_task_execute(task);
+  /* Create and execute a single task. */
+  task = MSG_task_create("proc 0", task_comp_size, 0, NULL);
+  MSG_task_set_priority(task, task_prio);
+  MSG_task_execute(task);
 
-       INFO0("Test finished");
+  INFO0("Test finished");
 
 
-       return 0;
+  return 0;
 }
 
 /** Main function */