Bugfix #106 mostly.

master
Julian M. Kunkel 2018-10-17 13:50:04 +01:00 committed by Glenn K. Lockwood
parent de5c5fe314
commit f49a7e32fc
1 changed files with 2 additions and 3 deletions

View File

@ -2336,12 +2336,11 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
} else if (branch_factor == 1) {
num_dirs_in_tree = depth + 1;
} else {
num_dirs_in_tree =
(1 - pow(branch_factor, depth+1)) / (1 - branch_factor);
num_dirs_in_tree = (pow(branch_factor, depth+1) - 1) / (branch_factor - 1);
}
}
if (items_per_dir > 0) {
if(unique_dir_per_task){
if(items == 0){
items = items_per_dir * num_dirs_in_tree;
}else{
num_dirs_in_tree_calc = num_dirs_in_tree;