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