From: Arnaud Legrand Date: Thu, 22 Aug 2013 11:42:51 +0000 (+0200) Subject: Fix a bunch of typos thanks to the new spell script. I only made the words starting... X-Git-Tag: v3_9_90~123^2~39 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e92284beb25991e23cf18c5db06e33d647d77fd7 Fix a bunch of typos thanks to the new spell script. I only made the words starting by the letter 'a'. --- diff --git a/examples/msg/actions/actions.c b/examples/msg/actions/actions.c index 25baa9a7b3..0e13b12b52 100644 --- a/examples/msg/actions/actions.c +++ b/examples/msg/actions/actions.c @@ -437,8 +437,8 @@ static void action_comm_size(const char *const *action) static void action_compute(const char *const *action) { - const char *amout = action[2]; - msg_task_t task = MSG_task_create("task", parse_double(amout), 0, NULL); + const char *amount = action[2]; + msg_task_t task = MSG_task_create("task", parse_double(amount), 0, NULL); double clock = MSG_get_clock(); ACT_DEBUG("Entering %s", NAME); diff --git a/examples/msg/bittorrent/peer.h b/examples/msg/bittorrent/peer.h index b3d003bbb2..f66588fb12 100644 --- a/examples/msg/bittorrent/peer.h +++ b/examples/msg/bittorrent/peer.h @@ -27,7 +27,7 @@ typedef struct s_peer { xbt_dict_t peers; //peers list xbt_dict_t active_peers; //active peers list - int round; //current round for the chocking algortihm. + int round; //current round for the chocking algorithm. char mailbox[MAILBOX_SIZE]; //peer mailbox. diff --git a/examples/msg/pmm/msg_pmm.c b/examples/msg/pmm/msg_pmm.c index ee45fec5d5..cc6b9af8b0 100644 --- a/examples/msg/pmm/msg_pmm.c +++ b/examples/msg/pmm/msg_pmm.c @@ -28,7 +28,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_pmm, /* This example should always be executed using a deployment of * GRID_SIZE * GRID_SIZE nodes. */ #define GRID_SIZE 3 /* Modify to adjust the grid's size */ -#define NODE_MATRIX_SIZE 300 /* Ammount of work done by each node*/ +#define NODE_MATRIX_SIZE 300 /* Amount of work done by each node*/ #define GRID_NUM_NODES GRID_SIZE * GRID_SIZE #define MATRIX_SIZE NODE_MATRIX_SIZE * GRID_SIZE diff --git a/include/simdag/simdag.h b/include/simdag/simdag.h index 6d39ab774c..b5d0cc66ad 100644 --- a/include/simdag/simdag.h +++ b/include/simdag/simdag.h @@ -178,7 +178,7 @@ XBT_PUBLIC(SD_task_t) SD_task_create_comm_par_mxn_1d_block(const char *name, void *data, double amount); -XBT_PUBLIC(void) SD_task_distribute_comp_amdhal(SD_task_t task, int ws_count); +XBT_PUBLIC(void) SD_task_distribute_comp_amdahl(SD_task_t task, int ws_count); XBT_PUBLIC(void) SD_task_schedulev(SD_task_t task, int count, const SD_workstation_t * list); XBT_PUBLIC(void) SD_task_schedulel(SD_task_t task, int count, ...); diff --git a/include/xbt/ex.h b/include/xbt/ex.h index b64b4d0999..374bd019e5 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -140,7 +140,7 @@ __ex_mctx_struct} __ex_mctx_t; * * Any exception thrown directly from the TRIED_BLOCK block or from called * subroutines is caught. Cleanups which must be done after this block - * (whenever an exception arised or not) should be placed into the optionnal + * (whenever an exception arose or not) should be placed into the optionnal * CLEANUP_BLOCK. The code dealing with the exceptions when they arise should * be placed into the (mandatory) CATCH_BLOCK. * diff --git a/include/xbt/synchro_core.h b/include/xbt/synchro_core.h index 8eae7732e4..e1950dae50 100644 --- a/include/xbt/synchro_core.h +++ b/include/xbt/synchro_core.h @@ -7,7 +7,7 @@ /* 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. */ -/* splited away from synchro.h since we areused by dynar.h, and synchro.h uses dynar */ +/* splited away from synchro.h since we are used by dynar.h, and synchro.h uses dynar */ #ifndef _XBT_THREAD_H diff --git a/src/bindings/java/jxbt_utilities.h b/src/bindings/java/jxbt_utilities.h index 8d5084c191..8dbacd6d79 100644 --- a/src/bindings/java/jxbt_utilities.h +++ b/src/bindings/java/jxbt_utilities.h @@ -87,9 +87,9 @@ void jxbt_throw_host_not_found(JNIEnv * env, const char *invalid_name); void jxbt_throw_process_not_found(JNIEnv * env, const char *invalid_name); /** Thrown when a transfer failure accure while Sending task */ void jxbt_throw_transfer_failure(JNIEnv * env, char *detail); -/** Thrown when a host failure accures while Sending task*/ +/** Thrown when a host failure occurs while Sending a task*/ void jxbt_throw_host_failure(JNIEnv * env, char *details); -/** Thrown when a time out accures While Sending task */ +/** Thrown when a timeout occurs while Sending a task */ void jxbt_throw_time_out_failure(JNIEnv * env, char *details); /**Thrown when a task is canceled */ void jxbt_throw_task_cancelled(JNIEnv * env, char *details); diff --git a/src/bindings/lua/simgrid_lua.c b/src/bindings/lua/simgrid_lua.c index 8c44001c3b..a54102d594 100644 --- a/src/bindings/lua/simgrid_lua.c +++ b/src/bindings/lua/simgrid_lua.c @@ -148,7 +148,7 @@ static int sd_register_platform(lua_State * L) } /** - * Register applicaiton for MSG + * Register application for MSG */ static int msg_register_application(lua_State * L) { diff --git a/src/mc/mc_private.h b/src/mc/mc_private.h index d9663d0587..596e5eb984 100644 --- a/src/mc/mc_private.h +++ b/src/mc/mc_private.h @@ -195,7 +195,7 @@ typedef struct s_map_region { void *start_addr; /* Start address of the map */ void *end_addr; /* End address of the map */ int prot; /* Memory protection */ - int flags; /* Aditional memory flags */ + int flags; /* Additional memory flags */ void *offset; /* Offset in the file/whatever */ char dev_major; /* Major of the device */ char dev_minor; /* Minor of the device */ diff --git a/src/simdag/sd_task.c b/src/simdag/sd_task.c index 733febca5f..d85f2f4a52 100644 --- a/src/simdag/sd_task.c +++ b/src/simdag/sd_task.c @@ -172,8 +172,8 @@ return res; * mandatory power. * * A parallel computation can be scheduled on any number of host. - * The underlying speedup model is Amdahl's law. - * To be auto-scheduled, \see SD_task_distribute_comp_amdhal has to be called + * The underlying speedup model is Amdahl's law. + * To be auto-scheduled, \see SD_task_distribute_comp_amdahl has to be called * first. * \param name the name of the task (can be \c NULL) * \param data the user data you want to associate with the task (can be \c NULL) @@ -1430,7 +1430,7 @@ double SD_task_get_finish_time(SD_task_t task) /** @brief Blah * */ -void SD_task_distribute_comp_amdhal(SD_task_t task, int ws_count) +void SD_task_distribute_comp_amdahl(SD_task_t task, int ws_count) { int i; xbt_assert(task->kind == SD_TASK_COMP_PAR_AMDAHL, @@ -1482,7 +1482,7 @@ void SD_task_schedulev(SD_task_t task, int count, SD_task_get_name(task)); switch (task->kind) { case SD_TASK_COMP_PAR_AMDAHL: - SD_task_distribute_comp_amdhal(task, count); + SD_task_distribute_comp_amdahl(task, count); case SD_TASK_COMM_E2E: case SD_TASK_COMP_SEQ: xbt_assert(task->workstation_nb == count, @@ -1559,7 +1559,7 @@ void SD_task_schedulev(SD_task_t task, int count, * located (and start them if runnable) */ if (task->kind == SD_TASK_COMP_PAR_AMDAHL) { XBT_VERB("Schedule computation task %s on %d workstations. %.f flops" - " will be distributed following Amdahl'Law", + " will be distributed following Amdahl's Law", SD_task_get_name(task), task->workstation_nb, task->computation_amount[0]); xbt_dynar_foreach(task->tasks_before, cpt, dep) { diff --git a/src/simdag/sd_workstation.c b/src/simdag/sd_workstation.c index 3dbc6c0713..aa4ee57cc9 100644 --- a/src/simdag/sd_workstation.c +++ b/src/simdag/sd_workstation.c @@ -278,7 +278,7 @@ double SD_workstation_get_available_power(SD_workstation_t workstation) * * \param workstation a workstation * \param computation_amount the computation amount you want to evaluate (in flops) - * \return an approximative astimated computation time for the given computation amount on this workstation (in seconds) + * \return an approximative estimated computation time for the given computation amount on this workstation (in seconds) */ double SD_workstation_get_computation_time(SD_workstation_t workstation, double computation_amount) @@ -357,7 +357,7 @@ double SD_route_get_current_bandwidth(SD_workstation_t src, * \param src the first workstation * \param dst the second workstation * \param communication_amount the communication amount you want to evaluate (in bytes) - * \return an approximative astimated computation time for the given communication amount + * \return an approximative estimated computation time for the given communication amount * between the workstations (in seconds) */ double SD_route_get_communication_time(SD_workstation_t src, diff --git a/src/simix/smx_global.c b/src/simix/smx_global.c index 352e05fe65..faa20af08f 100644 --- a/src/simix/smx_global.c +++ b/src/simix/smx_global.c @@ -158,7 +158,7 @@ static void SIMIX_clean(void) #ifdef TIME_BENCH_AMDAHL xbt_os_cputimer_stop(simix_global->timer_seq); - XBT_INFO("Amdhal timing informations. Sequential time: %lf; Parallel time: %lf", + XBT_INFO("Amdahl timing informations. Sequential time: %lf; Parallel time: %lf", xbt_os_timer_elapsed(simix_global->timer_seq), xbt_os_timer_elapsed(simix_global->timer_par)); xbt_os_timer_free(simix_global->timer_seq); diff --git a/src/smpi/colls/scatter-ompi.c b/src/smpi/colls/scatter-ompi.c index 7cce8aee4b..c65b6f9511 100644 --- a/src/smpi/colls/scatter-ompi.c +++ b/src/smpi/colls/scatter-ompi.c @@ -100,7 +100,7 @@ smpi_coll_tuned_scatter_ompi_binomial(void *sbuf, int scount, } total_send = scount; } else if (!(vrank % 2)) { - /* non-root, non-leaf nodes, allocte temp buffer for recv + /* non-root, non-leaf nodes, allocate temp buffer for recv * the most we need is rcount*size/2 */ tempbuf = (char *) malloc(rtrue_extent + (rcount*size - 1) * rextent); if (NULL == tempbuf) { diff --git a/src/smpi/colls/smpi_mpich_selector.c b/src/smpi/colls/smpi_mpich_selector.c index a2a44ae779..67e9d5bfa6 100644 --- a/src/smpi/colls/smpi_mpich_selector.c +++ b/src/smpi/colls/smpi_mpich_selector.c @@ -426,7 +426,7 @@ int smpi_coll_tuned_reduce_scatter_mpich( void *sbuf, void *rbuf, int comm_size, i; size_t total_message_size; - if(sbuf==rbuf)sbuf=MPI_IN_PLACE; //restore MPI_IN_PLACE as these algos handle it + if(sbuf==rbuf)sbuf=MPI_IN_PLACE; //restore MPI_IN_PLACE as these algorithms handle it XBT_DEBUG("smpi_coll_tuned_reduce_scatter_mpich"); diff --git a/src/surf/cpu_ti.c b/src/surf/cpu_ti.c index 144b581a12..127d1eaeb2 100644 --- a/src/surf/cpu_ti.c +++ b/src/surf/cpu_ti.c @@ -111,7 +111,7 @@ static surf_cpu_ti_tgmr_t cpu_ti_parse_trace(tmgr_trace_t power_trace, if (!power_trace) { trace->type = TRACE_FIXED; trace->value = value; - XBT_DEBUG("No availabily trace. Constant value = %lf", value); + XBT_DEBUG("No availability trace. Constant value = %lf", value); return trace; } @@ -489,7 +489,7 @@ static void cpu_ti_update_actions_state(double now, double delta) /* set the remains to 0 due to precision problems when updating the remaining amount */ GENERIC_ACTION(action).remains = 0; cpu_ti_action_state_set((surf_action_t) action, SURF_ACTION_DONE); - /* update remaining amout of all actions */ + /* update remaining amount of all actions */ cpu_ti_update_remaining_amount(surf_cpu_resource_priv(action->cpu), surf_get_clock()); } #undef GENERIC_ACTION diff --git a/src/surf/cpu_ti_private.h b/src/surf/cpu_ti_private.h index 5c5504cee6..373838c7ae 100644 --- a/src/surf/cpu_ti_private.h +++ b/src/surf/cpu_ti_private.h @@ -42,7 +42,7 @@ typedef struct cpu_ti { surf_cpu_ti_tgmr_t avail_trace; /*< Structure with data needed to integrate trace file */ e_surf_resource_state_t state_current; /*< CPU current state (ON or OFF) */ tmgr_trace_event_t state_event; /*< trace file with states events (ON or OFF) */ - tmgr_trace_event_t power_event; /*< trace file with availabitly events */ + tmgr_trace_event_t power_event; /*< trace file with availability events */ xbt_swag_t action_set; /*< set with all actions running on cpu */ s_xbt_swag_hookup_t modified_cpu_hookup; /*< hookup to swag that indicacates whether share resources must be recalculated or not */ double sum_priority; /*< the sum of actions' priority that are running on cpu */ diff --git a/src/surf/lagrange.c b/src/surf/lagrange.c index 0eec4fb677..26cdbb0879 100644 --- a/src/surf/lagrange.c +++ b/src/surf/lagrange.c @@ -178,7 +178,7 @@ void lagrange_solve(lmm_system_t sys) lmm_variable_t var = NULL; /* - * Auxiliar variables. + * Auxiliary variables. */ int iteration = 0; double tmp = 0; diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index 0f08c52a98..50e2dc8670 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -19,7 +19,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf"); typedef struct { s_as_t generic_routing; - /* vars for calculate the floyd algorith. */ + /* vars for calculate the floyd algorithm. */ int *predecessor_table; double *cost_table; sg_platf_route_cbarg_t *link_table; diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 661240fdae..e496ca4611 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -1078,7 +1078,7 @@ static void init_randomness(void) static void add_randomness(void) { - /* If needed aditional properties can be added by using the prop tag */ + /* If needed, additional properties can be added by using the prop tag */ random_data_t random = random_new(random_generator, 0, random_min, random_max, random_mean, random_std_deviation); diff --git a/src/xbt/set.c b/src/xbt/set.c index eb09a357fb..1570b68b7b 100644 --- a/src/xbt/set.c +++ b/src/xbt/set.c @@ -420,7 +420,7 @@ static void traverse(xbt_set_t set) xbt_test_assert(elm, "Dude ! Got a null elm during traversal!"); xbt_test_log("Id(%u): %s->%s\n", elm->ID, elm->name, elm->data); xbt_test_assert(!strcmp(elm->name, elm->data), - "Key(%s) != value(%s). Abording", elm->name, + "Key(%s) != value(%s). Aborting", elm->name, elm->data); } } diff --git a/teshsuite/smpi/mpich3-test/attr/attrorder.c b/teshsuite/smpi/mpich3-test/attr/attrorder.c index 09827feadc..d1539aedc3 100644 --- a/teshsuite/smpi/mpich3-test/attr/attrorder.c +++ b/teshsuite/smpi/mpich3-test/attr/attrorder.c @@ -97,7 +97,7 @@ int checkAttrs( MPI_Comm comm, int n, int key[], int attrval[] ) } else if (val_p != &attrval[i]) { errs++; - fprintf( stderr, "Atribute value for key %d not correct\n", + fprintf( stderr, "Attribute value for key %d not correct\n", i ); } } diff --git a/teshsuite/smpi/mpich3-test/attr/attrordercomm.c b/teshsuite/smpi/mpich3-test/attr/attrordercomm.c index 852e2d54ac..209c0a3bd5 100644 --- a/teshsuite/smpi/mpich3-test/attr/attrordercomm.c +++ b/teshsuite/smpi/mpich3-test/attr/attrordercomm.c @@ -97,7 +97,7 @@ int checkAttrs( MPI_Comm comm, int n, int key[], int attrval[] ) } else if (val_p != &attrval[i]) { errs++; - fprintf( stderr, "Atribute value for key %d not correct\n", + fprintf( stderr, "Attribute value for key %d not correct\n", i ); } } diff --git a/teshsuite/smpi/mpich3-test/attr/attrordertype.c b/teshsuite/smpi/mpich3-test/attr/attrordertype.c index ac7ac61f24..25cf1d94b6 100644 --- a/teshsuite/smpi/mpich3-test/attr/attrordertype.c +++ b/teshsuite/smpi/mpich3-test/attr/attrordertype.c @@ -97,7 +97,7 @@ int checkAttrs( MPI_Datatype type, int n, int key[], int attrval[] ) } else if (val_p != &attrval[i]) { errs++; - fprintf( stderr, "Atribute value for key %d not correct\n", + fprintf( stderr, "Attribute value for key %d not correct\n", i ); } } diff --git a/teshsuite/smpi/mpich3-test/init/attrself.c b/teshsuite/smpi/mpich3-test/init/attrself.c index 9f68ce2a96..23398052f9 100644 --- a/teshsuite/smpi/mpich3-test/init/attrself.c +++ b/teshsuite/smpi/mpich3-test/init/attrself.c @@ -92,7 +92,7 @@ int checkAttrs( MPI_Comm comm, int n, int lkey[], int attrval[] ) } else if (val_p != &attrval[i]) { lerrs++; - fprintf( stderr, "Atribute value for key %d not correct\n", + fprintf( stderr, "Attribute value for key %d not correct\n", i ); } } diff --git a/teshsuite/smpi/mpich3-test/pt2pt/bsendalign.c b/teshsuite/smpi/mpich3-test/pt2pt/bsendalign.c index 9b900e37de..fdea0002c2 100644 --- a/teshsuite/smpi/mpich3-test/pt2pt/bsendalign.c +++ b/teshsuite/smpi/mpich3-test/pt2pt/bsendalign.c @@ -8,7 +8,7 @@ #include "mpi.h" #include "mpitest.h" -/* Test bsend with a buffer with arbitray alignment */ +/* Test bsend with a buffer with arbitrary alignment */ #define BUFSIZE 2000*4 int main( int argc, char *argv[] ) { diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index c6113367ad..b31a3fce9c 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -85,7 +85,7 @@ void rctx_init(void) sigwaiter_mutex = xbt_os_mutex_init(); sigwaiter_cond = xbt_os_cond_init(); xbt_os_mutex_acquire(sigwaiter_mutex); - sigwaiter_thread = xbt_os_thread_create("Armaggedon request waiter", + sigwaiter_thread = xbt_os_thread_create("Armageddon request waiter", armageddon_sigwaiter, NULL, NULL); /* Wait for thread to start... */ xbt_os_cond_wait(sigwaiter_cond, sigwaiter_mutex);