X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/54b32cae9f67ca8c817172d97c5702fc6c33f341..6a921002725af476cba5bffbbb228dbcec625fee:/src/bindings/rubyDag/rb_SD_task.c diff --git a/src/bindings/rubyDag/rb_SD_task.c b/src/bindings/rubyDag/rb_SD_task.c index d3f75d9249..740084b28c 100644 --- a/src/bindings/rubyDag/rb_SD_task.c +++ b/src/bindings/rubyDag/rb_SD_task.c @@ -1,3 +1,10 @@ +/* Copyright (c) 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +//#include "ruby_simdag.h" #include "rb_SD_task.h" // Free Method @@ -52,8 +59,8 @@ static void rb_SD_task_schedule(VALUE class,VALUE task,VALUE workstation_nb,VALU ptr_comm = RARRAY(communication_amount)->ptr; wrk_list = xbt_new0(SD_workstation_t,wrk_nb); - comp_amount = xbt_new0(double,wrk_nb);//malloc(sizeof(double)*wrk_nb); //xbt_new0(double,wrk_nb); - comm_amount = xbt_new0(double,wrk_nb);//malloc(sizeof(double)*wrk_nb); //xbt_new0(double,wrk_nb); + comp_amount = xbt_new0(double,wrk_nb); + comm_amount = xbt_new0(double,wrk_nb); // wrk_nb == comp_nb == comm_nb ??? for (i=0;i