From: Martin Quinson Date: Sat, 29 Oct 2016 15:41:18 +0000 (+0200) Subject: Spell checking ;) X-Git-Tag: v3_14~275 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/932b6fd07f6052ae0f23df19729efb0e0e056af7?ds=sidebyside Spell checking ;) --- diff --git a/src/kernel/routing/AsClusterDragonfly.cpp b/src/kernel/routing/AsClusterDragonfly.cpp index a4f5ea537b..7d98d9ae6b 100644 --- a/src/kernel/routing/AsClusterDragonfly.cpp +++ b/src/kernel/routing/AsClusterDragonfly.cpp @@ -49,7 +49,8 @@ void AsClusterDragonfly::parse_specific_arguments(sg_platf_cluster_cbarg_t clust // TODO : we have to check for zeros and negative numbers, or it might crash if (parameters.size() != 4){ - surf_parse_error("Dragonfly are defined by the number of groups, chassiss per groups, blades per chassis, nodes per blade"); + surf_parse_error( + "Dragonfly are defined by the number of groups, chassis per groups, blades per chassis, nodes per blade"); } // Blue network : number of groups, number of links between each group @@ -61,7 +62,7 @@ void AsClusterDragonfly::parse_specific_arguments(sg_platf_cluster_cbarg_t clust this->numGroups_=xbt_str_parse_int(tmp[0].c_str(), "Invalid number of groups: %s"); this->numLinksBlue_=xbt_str_parse_int(tmp[1].c_str(), "Invalid number of links for the blue level: %s"); - // Black network : number of chassiss/group, number of links between each router on the black network + // Black network : number of chassis/group, number of links between each router on the black network boost::split(tmp, parameters[1], boost::is_any_of(",")); if(tmp.size() != 2) { surf_parse_error("Dragonfly topologies are defined by 3 levels with 2 elements each, and one with one element"); diff --git a/src/kernel/routing/AsClusterFatTree.cpp b/src/kernel/routing/AsClusterFatTree.cpp index 859eb9120b..aaab2ed93a 100644 --- a/src/kernel/routing/AsClusterFatTree.cpp +++ b/src/kernel/routing/AsClusterFatTree.cpp @@ -407,8 +407,8 @@ void AsClusterFatTree::parse_specific_arguments(sg_platf_cluster_cbarg_t cluster // The first parts of topo_parameters should be the levels number this->levels_ = xbt_str_parse_int(parameters[0].c_str(), "First parameter is not the amount of levels: %s"); - - // Then, a l-sized vector standing for the childs number by level + + // Then, a l-sized vector standing for the children number by level boost::split(tmp, parameters[1], boost::is_any_of(",")); if(tmp.size() != this->levels_) { surf_parse_error("Fat trees are defined by the levels number and 3 vectors" diff --git a/src/kernel/routing/AsClusterTorus.cpp b/src/kernel/routing/AsClusterTorus.cpp index 3aaa1119f0..556e65e225 100644 --- a/src/kernel/routing/AsClusterTorus.cpp +++ b/src/kernel/routing/AsClusterTorus.cpp @@ -41,21 +41,21 @@ namespace simgrid { * Create all links that exist in the torus. * Each rank creates @a dimensions-1 links */ - int neighbour_rank_id = 0; // The other node the link connects - int current_dimension = 0, // which dimension are we currently in? + int neighbor_rank_id = 0; // The other node the link connects + int current_dimension = 0, // which dimension are we currently in? // we need to iterate over all dimensions // and create all links there - dim_product = 1; // Needed to calculate the next neighbour_id + dim_product = 1; // Needed to calculate the next neighbor_id for (j = 0; j < xbt_dynar_length(dimensions_); j++) { s_sg_platf_link_cbarg_t link; memset(&link, 0, sizeof(link)); current_dimension = xbt_dynar_get_as(dimensions_, j, int); - neighbour_rank_id = - (((int) rank / dim_product) % current_dimension == - current_dimension - 1) ? rank - (current_dimension - 1) * dim_product : rank + dim_product; + neighbor_rank_id = (((int)rank / dim_product) % current_dimension == current_dimension - 1) + ? rank - (current_dimension - 1) * dim_product + : rank + dim_product; //name of neighbor is not right for non contiguous cluster radicals (as id != rank in this case) - link_id = bprintf("%s_link_from_%i_to_%i", cluster->id, id, neighbour_rank_id); + link_id = bprintf("%s_link_from_%i_to_%i", cluster->id, id, neighbor_rank_id); link.id = link_id; link.bandwidth = cluster->bw; link.latency = cluster->lat; @@ -75,7 +75,7 @@ namespace simgrid { } /* * Add the link to its appropriate position; - * note that position rankId*(xbt_dynar_length(dimensions)+has_loopack?+has_limiter?) + * note that position rankId*(xbt_dynar_length(dimensions)+has_loopback?+has_limiter?) * holds the link "rankId->rankId" */ privateLinks_.insert({position + j, info}); diff --git a/src/kernel/routing/AsImpl.cpp b/src/kernel/routing/AsImpl.cpp index 9c60a5020c..afca765766 100644 --- a/src/kernel/routing/AsImpl.cpp +++ b/src/kernel/routing/AsImpl.cpp @@ -39,7 +39,7 @@ namespace simgrid { return nullptr; } - /** @brief Get the common ancestor and its first childs in each line leading to src and dst */ + /** @brief Get the common ancestor and its first children in each line leading to src and dst */ static void find_common_ancestors(NetCard* src, NetCard* dst, /* OUT */ AsImpl** common_ancestor, AsImpl** src_ancestor, AsImpl** dst_ancestor) { diff --git a/src/kernel/routing/AsVivaldi.hpp b/src/kernel/routing/AsVivaldi.hpp index a1016f338f..e8038e8e23 100644 --- a/src/kernel/routing/AsVivaldi.hpp +++ b/src/kernel/routing/AsVivaldi.hpp @@ -12,7 +12,7 @@ namespace simgrid { namespace kernel { namespace routing { -/* This derivates from cluster because each host has a private link */ +/* This extends cluster because each host has a private link */ class XBT_PRIVATE AsVivaldi: public AsCluster { public: explicit AsVivaldi(As* father, const char* name); diff --git a/tools/internal/spell_dict.txt b/tools/internal/spell_dict.txt index d05ad88f0a..40384796aa 100644 --- a/tools/internal/spell_dict.txt +++ b/tools/internal/spell_dict.txt @@ -45,6 +45,7 @@ LGPL libdw libunwind lmm +loopback LTL malloc Mbytes