+ int i,j;
+ /* checking for infinite values */
+ for (i = 0 ; i < host_nb ; ++i) {
+ xbt_assert(isfinite(computation_amount[i]), "computation_amount[%d] is not finite!", i);
+ for (j = 0 ; j < host_nb ; ++j) {
+ xbt_assert(isfinite(communication_amount[i + host_nb * j]),
+ "communication_amount[%d+%d*%d] is not finite!", i, host_nb, j);
+ }
+ }
+
+ xbt_assert(isfinite(amount), "amount is not finite!");
+ xbt_assert(isfinite(rate), "rate is not finite!");
+