From: velho Date: Fri, 13 Jul 2007 15:59:46 +0000 (+0000) Subject: Added the initialization of latency to the variables. X-Git-Tag: v3.3~1592 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a300a9b472bfb75d37e5ae9e965608c86ef4b069 Added the initialization of latency to the variables. Use the lmm_variable_update_latency function. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3768 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/testsuite/surf/simeng_usage.c b/testsuite/surf/simeng_usage.c index 75941f1c32..7851a3e5d9 100644 --- a/testsuite/surf/simeng_usage.c +++ b/testsuite/surf/simeng_usage.c @@ -68,6 +68,12 @@ void test1(method_t method) R_2 = lmm_variable_new(Sys, (void *) "R 2", 1.0 , -1.0 , 1); R_3 = lmm_variable_new(Sys, (void *) "R 3", 1.0 , -1.0 , 1); + lmm_update_variable_latency(Sys, R_1_2_3, 1.0); + lmm_update_variable_latency(Sys,R_1, 1.0); + lmm_update_variable_latency(Sys,R_2, 1.0); + lmm_update_variable_latency(Sys,R_3, 1.0); + + lmm_expand(Sys, L1, R_1_2_3, 1.0); lmm_expand(Sys, L2, R_1_2_3, 1.0); lmm_expand(Sys, L3, R_1_2_3, 1.0); @@ -129,6 +135,10 @@ void test2(method_t method) T1 = lmm_variable_new(Sys, (void *) "T1", 1.0 , -1.0 , 1); T2 = lmm_variable_new(Sys, (void *) "T2", 1.0 , -1.0 , 1); + lmm_update_variable_latency(Sys, T1, 1.0); + lmm_update_variable_latency(Sys, T2, 1.0); + + lmm_expand(Sys, CPU1, T1, 1.0); lmm_expand(Sys, CPU2, T2, 1.0); @@ -299,6 +309,7 @@ void test3(method_t method) for(j=0; j<16; j++){ sprintf(tmp_name[i+j], "X_%03d", j); tmp_var[j] = lmm_variable_new(Sys, (void *) tmp_name[i+j], 1.0, -1.0 , 15); + lmm_update_variable_latency(Sys, tmp_var[j], 1.0); } /*