X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a39156bd62af67f2073bd567b4ec2dafeb8a2c28..5c64d08d30a940a53f16f70509a6821b0f94ad8e:/src/surf/network_interface.cpp diff --git a/src/surf/network_interface.cpp b/src/surf/network_interface.cpp index 66e1e0b8cc..17d8b673d1 100644 --- a/src/surf/network_interface.cpp +++ b/src/surf/network_interface.cpp @@ -202,13 +202,12 @@ namespace simgrid { std::list NetworkAction::links() { std::list retlist; - lmm_system_t sys = getModel()->getMaxminSystem(); - int llen = lmm_get_number_of_cnst_from_var(sys, getVariable()); + int llen = getVariable()->get_number_of_constraint(); for (int i = 0; i < llen; i++) { /* Beware of composite actions: ptasks put links and cpus together */ // extra pb: we cannot dynamic_cast from void*... - Resource* resource = static_cast(lmm_get_cnst_from_var(sys, getVariable(), i)->get_id()); + Resource* resource = static_cast(getVariable()->get_constraint(i)->get_id()); LinkImpl* link = dynamic_cast(resource); if (link != nullptr) retlist.push_back(link);