X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/7d51ab7a8c68b22fe6fa54d9cfe7b1a997a23de5..4d5ec9803b74d0f3e9c002a92a748bd08b6640ac:/loba_bulk.cpp 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]; } }