X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/7d51ab7a8c68b22fe6fa54d9cfe7b1a997a23de5..d5bb5e4a973b0e6e2346204eb743da3676b92821:/loba_bulk.cpp?ds=inline diff --git a/loba_bulk.cpp b/loba_bulk.cpp index 96f3539..de9c099 100644 --- a/loba_bulk.cpp +++ b/loba_bulk.cpp @@ -54,11 +54,11 @@ void loba_bulk::load_balance() if (NbNwMinLoad && myLoad != 0.0) { for (unsigned i = 0; i < NbNeighbours; i++) { if (pneigh[i]->get_load() == minLoad) { - S[i] = floor(alpha * (myLoad - minLoad)); + S[i] = std::floor(alpha * (myLoad - minLoad)); myS += S[i]; } else { if (pneigh[i]->get_load() < myLoad) { - S[i] = floor(alpha * (myLoad - pneigh[i]->get_load())); + S[i] = std::floor(alpha * (myLoad - pneigh[i]->get_load())); myS += S[i]; } }