X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a714f2cc13ccf01d24d8848aafc9085aef8eb6ce..b35d70d6818026204833410d2e3917252fa35127:/src/surf/network_constant.cpp diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index c6bd1b314e..0d90ff7148 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -27,7 +27,7 @@ void surf_network_model_init_Constant() routing_model_create(NULL); - simgrid::surf::hostCreatedCallbacks.connect([](simgrid::surf::Host*) { + simgrid::surf::Host::onCreation.connect([](simgrid::surf::Host*) { host_number_int++; }); sg_platf_link_add_cb(netcste_parse_nolink); @@ -85,7 +85,7 @@ void NetworkConstantModel::updateActionsState(double /*now*/, double delta) } } -Action *NetworkConstantModel::communicate(RoutingEdge *src, RoutingEdge *dst, +Action *NetworkConstantModel::communicate(NetCard *src, NetCard *dst, double size, double rate) { char *src_name = src->getName();