namespace simgrid {
namespace kernel {
namespace routing {
- AsClusterTorus::AsClusterTorus(const char*name)
- : AsCluster(name) {
+ AsClusterTorus::AsClusterTorus(As* father, const char* name) : AsCluster(father, name)
+ {
}
AsClusterTorus::~AsClusterTorus() {
xbt_dynar_free(&dimensions_);
* note that position rankId*(xbt_dynar_length(dimensions)+has_loopack?+has_limiter?)
* holds the link "rankId->rankId"
*/
- privateLinks_.insert(privateLinks_.begin() + position + j, info);
+ privateLinks_.insert({position + j, info});
dim_product *= current_dimension;
xbt_free(link_id);
}
* TODO Change to dynamic assignment
*/
unsigned int j, cur_dim, dim_product = 1;
- int current_node = src->id();
- int unsigned next_node = 0;
+ unsigned int current_node = src->id();
+ unsigned int next_node = 0;
/*
* Arrays that hold the coordinates of the current node and
* the target; comparing the values at the i-th position of