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
sed -i -e 's/\t/ /g' [sources] Please people, stop using tabs
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index c55dd85ea828f0cdb0ca1a38398e927f683a05e6..e2968b1da63e2befca7ab12d5567f2bd15389bd3 100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-54,7
+54,7
@@
void sg_platf_exit(void) {
void sg_platf_new_host(sg_platf_host_cbarg_t host)
{
xbt_assert(! sg_host_by_name(host->id),
void sg_platf_new_host(sg_platf_host_cbarg_t host)
{
xbt_assert(! sg_host_by_name(host->id),
-
"Refusing to create a second host named '%s'.", host->id);
+ "Refusing to create a second host named '%s'.", host->id);
simgrid::surf::NetCard *net = NULL;
simgrid::surf::As* current_routing = routing_get_current();
simgrid::surf::NetCard *net = NULL;
simgrid::surf::As* current_routing = routing_get_current();
@@
-63,7
+63,7
@@
void sg_platf_new_host(sg_platf_host_cbarg_t host)
sg_host_t h = simgrid::s4u::Host::by_name_or_create(host->id);
simgrid::surf::Cpu *cpu = surf_cpu_model_pm->createCpu(
sg_host_t h = simgrid::s4u::Host::by_name_or_create(host->id);
simgrid::surf::Cpu *cpu = surf_cpu_model_pm->createCpu(
-
h,
+ h,
host->speed_peak,
host->pstate,
host->speed_scale,
host->speed_peak,
host->pstate,
host->speed_scale,
@@
-166,13
+166,13
@@
void sg_platf_new_storage(sg_platf_storage_cbarg_t storage)
((storage_type_t) stype)->type_id,
storage->content,
storage->content_type,
((storage_type_t) stype)->type_id,
storage->content,
storage->content_type,
-
storage->properties);
+ storage->properties);
surf_storage_model->createStorage(storage->id,
((storage_type_t) stype)->type_id,
storage->content,
storage->content_type,
surf_storage_model->createStorage(storage->id,
((storage_type_t) stype)->type_id,
storage->content,
storage->content_type,
-
storage->properties,
+ storage->properties,
storage->attach);
}
void sg_platf_new_storage_type(sg_platf_storage_type_cbarg_t storage_type){
storage->attach);
}
void sg_platf_new_storage_type(sg_platf_storage_type_cbarg_t storage_type){