-/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/sg_config.hpp"
#include "simgrid/instr.h"
+#include "simgrid/version.h"
#include "src/instr/instr_private.hpp"
#include "src/internal_config.h"
#include "src/kernel/lmm/maxmin.hpp"
static void sg_config_cmd_line(int *argc, char **argv)
{
bool shall_exit = false;
- int i;
- int j;
bool parse_args = true; // Stop parsing the parameters once we found '--'
- for (j = i = 1; i < *argc; i++) {
+ int j = 1;
+ for (int i = j; i < *argc; i++) {
if (not strcmp("--", argv[i])) {
parse_args = false;
// Remove that '--' from the arguments
sg_weight_S_parameter, "network/weight-S", {"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);
+
/* Inclusion path */
simgrid::config::declare_flag<std::string>("path", "Lookup path for inclusions in platform and deployment XML files",
"", [](std::string const& path) {