Commit 2d27fd66 authored by iker_martin's avatar iker_martin
Browse files

Minor bugfix and improvement

parent afdf5f69
......@@ -3,3 +3,5 @@
#Ignore build files
/Codes/build/
/Codes/MaM/build
/Codes/SAM/build
......@@ -250,6 +250,15 @@ void MAM_Check_configuration() {
MAM_I_set_red_strat(MAM_STRAT_RED_WAIT_TARGETS, &mall_conf->red_strategies);
}
}
#if MAM_DEBUG >= 2
if(mall->myId == mall->root) {
DEBUG_FUNC("MaM configuration", mall->myId, mall->numP);
printf("Spawn M=%d S=%d D=%d Redist M=%d S=%d\n",
mall_conf->spawn_method, mall_conf->spawn_strategies, mall_conf->spawn_dist, mall_conf->red_method, mall_conf->red_strategies);
fflush(stdout);
}
#endif
}
//======================================================||
......
......@@ -19,7 +19,7 @@ if [[ $nodelist == *"["* ]]; then
common_node_name=$(echo $nodelist | cut -d '[' -f1)
fi
node_array=($(echo $nodelist | sed -e 's/[\[n]//g' -e 's/\]/ /g' -e 's/,/ /g'))
node_array=($(echo $nodelist | sed -e 's/[\[${common_node_name}]//g' -e 's/\]/ /g' -e 's/,/ /g'))
actual_node_qty=0
for ((i=0; $actual_node_qty<$initial_node_qty; i++))
do
......
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