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
Use homogeneous dicts which are more efficient.
[simgrid.git]
/
src
/
surf
/
network.c
diff --git
a/src/surf/network.c
b/src/surf/network.c
index
2eee39c
..
d3d87f7
100644
(file)
--- a/
src/surf/network.c
+++ b/
src/surf/network.c
@@
-6,7
+6,7
@@
* highly dependent on the maxmin lmm module.
*/
* highly dependent on the maxmin lmm module.
*/
-/* Copyright (c) 200
9, 2010, 2011
. The SimGrid Team.
+/* Copyright (c) 200
4-2013
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-680,7
+680,7
@@
static void smpi_gap_append(double size, const link_CM02_t link,
if (sg_sender_gap > 0.0) {
if (!gap_lookup) {
if (sg_sender_gap > 0.0) {
if (!gap_lookup) {
- gap_lookup = xbt_dict_new
(
);
+ gap_lookup = xbt_dict_new
_homogeneous(NULL
);
}
fifo = (xbt_fifo_t) xbt_dict_get_or_null(gap_lookup, src);
action->sender.gap = 0.0;
}
fifo = (xbt_fifo_t) xbt_dict_get_or_null(gap_lookup, src);
action->sender.gap = 0.0;
@@
-736,7
+736,7
@@
static void set_update_mechanism(void)
{
char *optim = xbt_cfg_get_string(_sg_cfg_set, "network/optim");
int select =
{
char *optim = xbt_cfg_get_string(_sg_cfg_set, "network/optim");
int select =
- xbt_cfg_get_
int
(_sg_cfg_set, "network/maxmin_selective_update");
+ xbt_cfg_get_
boolean
(_sg_cfg_set, "network/maxmin_selective_update");
if (!strcmp(optim, "Full")) {
surf_network_model->model_private->update_mechanism = UM_FULL;
if (!strcmp(optim, "Full")) {
surf_network_model->model_private->update_mechanism = UM_FULL;