Commit 6e2e94a5 authored by iker_martin's avatar iker_martin
Browse files

Bugfix for initial configuration values. In addition, a compilation error fixed.

parent af0082c9
......@@ -163,6 +163,11 @@ void MAM_Init_configuration() {
MPI_Abort(MPI_COMM_WORLD, -50);
}
mall_conf->spawn_method = MAM_STRAT_CLEAR_VALUE;
mall_conf->spawn_strategies = MAM_STRAT_CLEAR_VALUE;
mall_conf->red_method = MAM_STRAT_CLEAR_VALUE;
mall_conf->red_strategies = MAM_STRAT_CLEAR_VALUE;
configSettings[MAM_SPAWN_METHOD].value = &mall_conf->spawn_method;
configSettings[MAM_SPAWN_STRATEGIES].value = &mall_conf->spawn_strategies;
configSettings[MAM_PHYSICAL_DISTRIBUTION].value = &mall_conf->spawn_dist;
......
......@@ -133,7 +133,7 @@ void node_dist(Spawn_data spawn_data, int **qty, int *used_nodes, int *total_spa
* FIXME Tener en cuenta localizacion de procesos ya creados (already_created)
*/
void spread_dist(Spawn_data spawn_data, int *used_nodes, int *procs) {
int i, tamBl;
int i, tamBl, remainder;
*used_nodes = mall->num_nodes;
tamBl = spawn_data.target_qty / *used_nodes;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment