-/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
namespace simgrid::smpi {
static auto factor_lambda(std::vector<double> const& values, double size)
{
- return values[0] + values[1] * static_cast<size_t>(size);
+ return values[0] + values[1] * size;
}
class Host {
kernel::resource::FactorSet orecv_{"smpi/or", 0.0, factor_lambda};
explicit Host(s4u::Host* ptr);
- double orecv(size_t size, s4u::Host* src, s4u::Host* dst);
- double osend(size_t size, s4u::Host* src, s4u::Host* dst);
- double oisend(size_t size, s4u::Host* src, s4u::Host* dst);
+ double orecv(size_t size, s4u::Host* src, s4u::Host* dst) const;
+ double osend(size_t size, s4u::Host* src, s4u::Host* dst) const;
+ double oisend(size_t size, s4u::Host* src, s4u::Host* dst) const;
};
} // namespace simgrid::smpi