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
Merge commit '045db1657e870c721be490b411868f4181a12ced' into surf++
[simgrid.git]
/
src
/
surf
/
network_constant.cpp
diff --git
a/src/surf/network_constant.cpp
b/src/surf/network_constant.cpp
index
6b177d6
..
13fff27
100644
(file)
--- a/
src/surf/network_constant.cpp
+++ b/
src/surf/network_constant.cpp
@@
-2,7
+2,6
@@
#include "surf/random_mgr.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
#include "surf/random_mgr.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
-static random_data_t random_latency = NULL;
static int host_number_int = 0;
static void netcste_count_hosts(sg_platf_host_cbarg_t h) {
static int host_number_int = 0;
static void netcste_count_hosts(sg_platf_host_cbarg_t h) {
@@
-17,9
+16,6
@@
void surf_network_model_init_Constant()
xbt_assert(surf_network_model == NULL);
surf_network_model = new NetworkConstantModel();
xbt_assert(surf_network_model == NULL);
surf_network_model = new NetworkConstantModel();
- if (!random_latency)
- random_latency = random_new(RAND, 100, 0.0, 1.0, .125, .034);
-
sg_platf_host_add_cb(netcste_count_hosts);
ModelPtr model = static_cast<ModelPtr>(surf_network_model);
sg_platf_host_add_cb(netcste_count_hosts);
ModelPtr model = static_cast<ModelPtr>(surf_network_model);