A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CpuTi in c++
[simgrid.git]
/
testsuite
/
surf
/
surf_usage.c
diff --git
a/testsuite/surf/surf_usage.c
b/testsuite/surf/surf_usage.c
index
2e8c31a
..
1224959
100644
(file)
--- a/
testsuite/surf/surf_usage.c
+++ b/
testsuite/surf/surf_usage.c
@@
-11,6
+11,7
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
+#include "simgrid/sg_config.h"
#include "surf/surf.h"
#include "surf/surf_resource.h"
#include "surf/surfxml_parse.h" // for reset callback
#include "surf/surf.h"
#include "surf/surf_resource.h"
#include "surf/surfxml_parse.h" // for reset callback
@@
-52,8
+53,8
@@
void test(char *platform)
e_surf_action_state_t stateActionB;
e_surf_action_state_t stateActionC;
double now = -1.0;
e_surf_action_state_t stateActionB;
e_surf_action_state_t stateActionC;
double now = -1.0;
- xbt_cfg_set_parse(_s
urf
_cfg_set, "cpu/model:Cas01");
- xbt_cfg_set_parse(_s
urf
_cfg_set, "network/model:CM02");
+ xbt_cfg_set_parse(_s
g
_cfg_set, "cpu/model:Cas01");
+ xbt_cfg_set_parse(_s
g
_cfg_set, "network/model:CM02");
parse_platform_file(platform);
/*********************** CPU ***********************************/
parse_platform_file(platform);
/*********************** CPU ***********************************/
@@
-82,8
+83,8
@@
void test(char *platform)
/*********************** Network *******************************/
XBT_DEBUG("%p", surf_network_model);
/*********************** Network *******************************/
XBT_DEBUG("%p", surf_network_model);
- cardA = s
urf_network_resource_by_name
("Cpu A");
- cardB = s
urf_network_resource_by_name
("Cpu B");
+ cardA = s
g_routing_edge_by_name_or_null
("Cpu A");
+ cardB = s
g_routing_edge_by_name_or_null
("Cpu B");
/* Let's check that those two processors exist */
XBT_DEBUG("%s : %p", surf_resource_name(cardA), cardA);
/* Let's check that those two processors exist */
XBT_DEBUG("%s : %p", surf_resource_name(cardA), cardA);