- // xbt_die -> assert
- if (tempIter == this->computeNodes_.end()) {
- xbt_die("Could not find the source %s [%d] in the fat tree", src->name().c_str(), src->id());
- }
- source = tempIter->second;
- tempIter = this->computeNodes_.find(dst->id());
- if (tempIter == this->computeNodes_.end()) {
- xbt_die("Could not find the destination %s [%d] in the fat tree", dst->name().c_str(), dst->id());
- }
-
-
- destination = tempIter->second;
+ searchedNode = this->computeNodes_.find(dst->id());
+ xbt_assert(searchedNode != this->computeNodes_.end(), "Could not find the destination %s [%d] in the fat tree",
+ dst->name().c_str(), dst->id());
+ FatTreeNode* destination = searchedNode->second;