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
bummer. Fix borken commit.
[simgrid.git]
/
src
/
s4u
/
s4u_as.cpp
diff --git
a/src/s4u/s4u_as.cpp
b/src/s4u/s4u_as.cpp
index
7dae44a
..
14827e0
100644
(file)
--- a/
src/s4u/s4u_as.cpp
+++ b/
src/s4u/s4u_as.cpp
@@
-57,7
+57,7
@@
namespace simgrid {
xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t), nullptr);
for (unsigned int index = 0; index < xbt_dynar_length(vertices_); index++) {
xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t), nullptr);
for (unsigned int index = 0; index < xbt_dynar_length(vertices_); index++) {
- simgrid::
surf::NetCard *card = xbt_dynar_get_as(vertices_, index, simgrid::surf
::NetCard*);
+ simgrid::
routing::NetCard *card = xbt_dynar_get_as(vertices_, index, simgrid::routing
::NetCard*);
simgrid::s4u::Host *host = simgrid::s4u::Host::by_name_or_null(card->name());
if (host!=nullptr)
xbt_dynar_push(res, &host);
simgrid::s4u::Host *host = simgrid::s4u::Host::by_name_or_null(card->name());
if (host!=nullptr)
xbt_dynar_push(res, &host);
@@
-65,8
+65,8
@@
namespace simgrid {
return res;
}
return res;
}
- int As::addComponent(
surf
::NetCard *elm) {
- xbt_dynar_push_as(vertices_,
surf
::NetCard*, elm);
+ int As::addComponent(
routing
::NetCard *elm) {
+ xbt_dynar_push_as(vertices_,
routing
::NetCard*, elm);
return xbt_dynar_length(vertices_)-1;
}
return xbt_dynar_length(vertices_)-1;
}