X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0f3756528127131a1947179f56871657a084259..016507e2f9575c2ee41587803bf3c6cecbde99a0:/src/surf/network_constant.cpp diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index c1f0970c0c..0ebd1813df 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -16,14 +16,18 @@ void surf_network_model_init_Constant() { xbt_assert(surf_network_model == nullptr); surf_network_model = new simgrid::kernel::resource::NetworkConstantModel(); - all_existing_models->push_back(surf_network_model); } namespace simgrid { namespace kernel { namespace resource { -LinkImpl* NetworkConstantModel::createLink(const std::string& name, double bw, double lat, - s4u::Link::SharingPolicy policy) +NetworkConstantModel::NetworkConstantModel() : NetworkModel(Model::UpdateAlgo::FULL) +{ + all_existing_models.push_back(this); +} + +LinkImpl* NetworkConstantModel::create_link(const std::string& name, double bw, double lat, + s4u::Link::SharingPolicy policy) { xbt_die("Refusing to create the link %s: there is no link in the Constant network model. "