-/* Copyright (c) 2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2021. 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. */
# -- Project information -----------------------------------------------------
project = u'SimGrid'
-copyright = u'2002-2020, The SimGrid Team'
+copyright = u'2002-2021, The SimGrid Team'
author = u'The SimGrid Team'
# The short X.Y version
unsigned int find_node(node_t node, unsigned int id_to_find, unsigned int count_in_stats)
{
- unsigned int i = 0;
unsigned int queries;
unsigned int answers;
unsigned int destination_found = 0;
// Handle the answer
routing_table_update(node, msg->sender_id);
node_contact_t contact;
+ unsigned int i;
xbt_dynar_foreach (node_list->nodes, i, contact)
routing_table_update(node, contact->id);
std::string sender;
int size;
- Message(std::string sender_, int size_) : sender(sender_), size(size_) {}
+ Message(const std::string& sender_, int size_) : sender(sender_), size(size_) {}
};
static void sender(std::string mailbox, double msg_size, unsigned sleep_time)
-/* Copyright (c) 2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2020-2021. 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. */
jobjectArray jtable;
jobject jstorage;
jstring jname;
- sg_storage_t storage;
xbt_dynar_t table = sg_storages_as_dynar();
int count = xbt_dynar_length(table);
}
for (index = 0; index < count; index++) {
- storage = xbt_dynar_get_as(table, index, sg_storage_t);
+ sg_storage_t storage = xbt_dynar_get_as(table, index, sg_storage_t);
if (java_storage_map.find(storage) != java_storage_map.end()) {
jstorage = java_storage_map.at(storage);
} else {
private_links_.insert({position + j, {linkUp, linkDown}});
dim_product *= current_dimension;
}
- rank++;
}
void TorusZone::parse_specific_arguments(ClusterCreationArgs* cluster)
namespace mc {
class XBT_PRIVATE UdporChecker : public Checker {
-
public:
explicit UdporChecker();
~UdporChecker() override = default;
RecordTrace get_record_trace() override;
std::vector<std::string> get_textual_trace() override;
void log_state() override;
-
-
};
} // namespace mc
} // namespace simgrid
-#endif
\ No newline at end of file
+#endif
for (const std::string& target_lib : target_libs)
unlink(target_lib.c_str());
}
- xbt_assert(handle != nullptr, "dlopen failed: %s (errno: %d -- %s)", dlerror(), saved_errno,
- strerror(saved_errno));
+ xbt_assert(handle != nullptr,
+ "dlopen failed: %s (errno: %d -- %s).\nError: Did you compile the program with a SMPI-specific "
+ "compiler (spmicc or friends)?",
+ dlerror(), saved_errno, strerror(saved_errno));
smpi_entry_point_type entry_point = smpi_resolve_function(handle);
xbt_assert(entry_point, "Could not resolve entry point");
-/* Copyright (c) 2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2020-2021. 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. */
-/* Copyright (c) 2020. The SimGrid Team.
+/* Copyright (c) 2020-2021. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it