- if (communicationAmount_ != nullptr) {
- for (size_t i = 0; i < host_count; i++) {
- for (size_t j = 0; j < host_count; j++) {
- if (communicationAmount_[i * host_count + j] > 0) {
- double lat = 0.0;
- std::vector<LinkImpl*> route;
- hostList_.at(i)->route_to(hostList_.at(j), route, &lat);
-
- lat_current = std::max(lat_current, lat * communicationAmount_[i * host_count + j]);
- }
+ if (communicationAmount_ == nullptr) {
+ return lat_bound;
+ }
+
+ for (size_t i = 0; i < host_count; i++) {
+ for (size_t j = 0; j < host_count; j++) {
+ if (communicationAmount_[i * host_count + j] > 0) {
+ double lat = 0.0;
+ std::vector<LinkImpl*> route;
+ hostList_.at(i)->route_to(hostList_.at(j), route, &lat);
+
+ lat_current = std::max(lat_current, lat * communicationAmount_[i * host_count + j]);