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