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];
}
}