X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c35a583c922ec5967b33193d67dad791cbe0e21..9698647b08a3a2771bd8217f9698b014af69a346:/src/simix/libsmx.cpp diff --git a/src/simix/libsmx.cpp b/src/simix/libsmx.cpp index d97e17a34c..482750dd27 100644 --- a/src/simix/libsmx.cpp +++ b/src/simix/libsmx.cpp @@ -90,12 +90,11 @@ smx_activity_t simcall_execution_parallel_start(const char* name, int host_nb, s double* flops_amount, double* bytes_amount, double amount, double rate, double timeout) { - int i,j; /* checking for infinite values */ - for (i = 0 ; i < host_nb ; ++i) { + for (int i = 0 ; i < host_nb ; ++i) { xbt_assert(std::isfinite(flops_amount[i]), "flops_amount[%d] is not finite!", i); if (bytes_amount != nullptr) { - for (j = 0 ; j < host_nb ; ++j) { + for (int j = 0 ; j < host_nb ; ++j) { xbt_assert(std::isfinite(bytes_amount[i + host_nb * j]), "bytes_amount[%d+%d*%d] is not finite!", i, host_nb, j); }