Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix some more doc bugs
[simgrid.git] / src / smpi / include / smpi_host.hpp
index 3defe11db0c41f8a697a96981d7520a292541d2a..503df80ee0fcfccc65b9afbb10b79d763b803bea 100644 (file)
@@ -1,4 +1,4 @@
-/* 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. */
@@ -17,7 +17,7 @@
 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};
@@ -35,9 +35,9 @@ public:
 
   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