Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a bug in an error message
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 10 Oct 2020 13:52:35 +0000 (15:52 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 10 Oct 2020 13:55:30 +0000 (15:55 +0200)
src/s4u/s4u_Actor.cpp

index 9353748..d6a2499 100644 (file)
@@ -383,7 +383,7 @@ ExecPtr exec_init(const std::vector<s4u::Host*>& hosts, const std::vector<double
              "Host count (%zu) does not match flops_amount count (%zu).", hosts.size(), flops_amounts.size());
   xbt_assert(hosts.size() * hosts.size() == bytes_amounts.size() || bytes_amounts.empty(),
              "bytes_amounts must be a matrix of size host_count * host_count (%zu*%zu), but it's of size %zu.",
-             hosts.size(), hosts.size(), flops_amounts.size());
+             hosts.size(), hosts.size(), bytes_amounts.size());
   /* Check that we are not mixing VMs and PMs in the parallel task */
   bool is_a_vm = (nullptr != dynamic_cast<VirtualMachine*>(hosts.front()));
   xbt_assert(std::all_of(hosts.begin(), hosts.end(),