if(nodesRequired > this->nodes.size()) {
surf_parse_error("There is not enough nodes to fit to the described topology."
- " Please check your platform description (We need %d nodes, we only got %lu)",
+ " Please check your platform description (We need %d nodes, we only got %zu)",
nodesRequired, this->nodes.size());
return;
}
}
void AsClusterFatTree::addNodes(std::vector<int> const& id) {
- for (unsigned int i = 0 ; i < id.size() ; i++) {
+ for (size_t i = 0 ; i < id.size() ; i++) {
this->nodes.push_back(new FatTreeNode(id[i]));
}
}
surf_parse_error("Fat trees are defined by the levels number and 3 vectors"
", see the documentation for more informations");
}
- for(unsigned int i = 0 ; i < tmp.size() ; i++){
+ for(size_t i = 0 ; i < tmp.size() ; i++){
this->lowerLevelNodesNumber.push_back(std::atoi(tmp[i].c_str()));
}
surf_parse_error("Fat trees are defined by the levels number and 3 vectors"
", see the documentation for more informations");
}
- for(unsigned int i = 0 ; i < tmp.size() ; i++){
+ for(size_t i = 0 ; i < tmp.size() ; i++){
this->upperLevelNodesNumber.push_back(std::atoi(tmp[i].c_str()));
}
", see the documentation for more informations");
}
- for(unsigned int i = 0 ; i < tmp.size() ; i++){
+ for(size_t i = 0 ; i < tmp.size() ; i++){
this->lowerLevelPortsNumber.push_back(std::atoi(tmp[i].c_str()));
}
}