-
- sg_latency_factor = 13.01; // comes from the default LV08 network model
- simgrid::config::bind_flag(sg_latency_factor, "network/latency-factor",
- "Correction factor to apply to the provided latency (default value set by network model)");
-
- sg_bandwidth_factor = 0.97; // comes from the default LV08 network model
- simgrid::config::bind_flag(
- sg_bandwidth_factor, "network/bandwidth-factor",
- "Correction factor to apply to the provided bandwidth (default value set by network model)");
-
- sg_weight_S_parameter = 20537; // comes from the default LV08 network model
- simgrid::config::bind_flag(
- sg_weight_S_parameter, "network/weight-S",
- "Correction factor to apply to the weight of competing streams (default value set by network model)");
-
- simgrid::config::declare_flag<double>("network/loopback-lat",
- "For network models with an implicit loopback link (L07, CM02, LV08), "
- "latency of the loopback link. 0 by default",
- 0);
-
- simgrid::config::declare_flag<double>("network/loopback-bw",
- "For network models with an implicit loopback link (L07, CM02, LV08), "
- "bandwidth of the loopback link. 10GBps by default",
- 10e9);
+ static simgrid::config::Flag<double> _sg_network_loopback_latency{
+ "network/loopback-lat",
+ "For network models with an implicit loopback link (L07, CM02, LV08), "
+ "latency of the loopback link. 0 by default",
+ 0.0};
+
+ static simgrid::config::Flag<double> _sg_network_loopback_bandwidth{
+ "network/loopback-bw",
+ "For network models with an implicit loopback link (L07, CM02, LV08), "
+ "bandwidth of the loopback link. 10GBps by default",
+ 10e9};