X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3397fde30788e5ba847cc9e1ad2d97425275aec..2480fb4643b0d6a391c3b5f7c5c70b30f3c5a683:/src/surf/instr_routing.cpp diff --git a/src/surf/instr_routing.cpp b/src/surf/instr_routing.cpp index 827b7adb97..fab1c56f42 100644 --- a/src/surf/instr_routing.cpp +++ b/src/surf/instr_routing.cpp @@ -268,10 +268,10 @@ static void sg_instr_new_host(simgrid::s4u::Host& host) msg_process = PJ_type_container_new("MSG_PROCESS", container->type); type_t state = PJ_type_state_new ("MSG_PROCESS_STATE", msg_process); s_val PJ_value("suspend", "1 0 1", state); - PJ_value.PJ_value_update("sleep", "1 1 0", state); - PJ_value.PJ_value_update("receive", "1 0 0", state); - PJ_value.PJ_value_update("send", "0 0 1", state); - PJ_value.PJ_value_update("task_execute", "0 1 1", state); + s_val::PJ_value_get_or_new("sleep", "1 1 0", state); + s_val::PJ_value_get_or_new("receive", "1 0 0", state); + s_val::PJ_value_get_or_new("send", "0 0 1", state); + s_val::PJ_value_get_or_new("task_execute", "0 1 1", state); PJ_type_link_new ("MSG_PROCESS_LINK", PJ_type_get_root(), msg_process, msg_process); PJ_type_link_new ("MSG_PROCESS_TASK_LINK", PJ_type_get_root(), msg_process, msg_process); } @@ -283,10 +283,10 @@ static void sg_instr_new_host(simgrid::s4u::Host& host) msg_vm = PJ_type_container_new("MSG_VM", container->type); type_t state = PJ_type_state_new ("MSG_VM_STATE", msg_vm); s_val PJ_value("suspend", "1 0 1", state); - PJ_value.PJ_value_update ("sleep", "1 1 0", state); - PJ_value.PJ_value_update ("receive", "1 0 0", state); - PJ_value.PJ_value_update ("send", "0 0 1", state); - PJ_value.PJ_value_update ("task_execute", "0 1 1", state); + s_val::PJ_value_get_or_new ("sleep", "1 1 0", state); + s_val::PJ_value_get_or_new ("receive", "1 0 0", state); + s_val::PJ_value_get_or_new ("send", "0 0 1", state); + s_val::PJ_value_get_or_new ("task_execute", "0 1 1", state); PJ_type_link_new ("MSG_VM_LINK", PJ_type_get_root(), msg_vm, msg_vm); PJ_type_link_new ("MSG_VM_PROCESS_LINK", PJ_type_get_root(), msg_vm, msg_vm); }