return type of SD_simulate
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7873
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
}
int main(int argc, char **argv) {
}
int main(int argc, char **argv) {
+ xbt_dynar_t dax, changed;
unsigned int cursor;
SD_task_t task;
unsigned int cursor;
SD_task_t task;
}
INFO0("------------------- Run the schedule ---------------------------");
}
INFO0("------------------- Run the schedule ---------------------------");
- SD_task_t *changed = SD_simulate(-1);
- free(changed);
+ changed = SD_simulate(-1);
+ xbt_dynar_free_container(&changed);
INFO0("------------------- Produce the trace file---------------------------");
INFO1("Producing the trace of the run into %s",tracefilename);
FILE*out = fopen(tracefilename,"w");
INFO0("------------------- Produce the trace file---------------------------");
INFO1("Producing the trace of the run into %s",tracefilename);
FILE*out = fopen(tracefilename,"w");
int main(int argc, char **argv)
{
int i;
int main(int argc, char **argv)
{
int i;
const char *platform_file;
const SD_workstation_t *workstations;
const char *name1;
const char *platform_file;
const SD_workstation_t *workstations;
const char *name1;
computation_amount, communication_amount, rate);
changed_tasks = SD_simulate(-1.0);
computation_amount, communication_amount, rate);
changed_tasks = SD_simulate(-1.0);
- xbt_dynar_foreach(changed_tasks, i, task){
+ xbt_dynar_foreach(changed_tasks, ctr, task){
INFO3("Task '%s' start time: %f, finish time: %f",
SD_task_get_name(task),
SD_task_get_start_time(task),
INFO3("Task '%s' start time: %f, finish time: %f",
SD_task_get_name(task),
SD_task_get_start_time(task),
int main(int argc, char **argv)
{
int i, j;
int main(int argc, char **argv)
{
int i, j;
- SD_task_t *changed_tasks;
+ xbt_dynar_t changed_tasks;
int n_hosts;
const SD_workstation_t *hosts;
SD_task_t taskInit;
int n_hosts;
const SD_workstation_t *hosts;
SD_task_t taskInit;
INFO1("Simulation time: %f", SD_get_clock());
INFO1("Simulation time: %f", SD_get_clock());
+ xbt_dynar_free_container(&changed_tasks);
free(ParComp_wocomm_table);
free(IntraRedist_cost);
free(ParComp_wocomm_table);
free(IntraRedist_cost);