Bugfix #106 mostly.

master
Julian M. Kunkel 2018-10-17 13:50:04 +01:00
parent f7dc084f32
commit f4afa63ebf
1 changed files with 2 additions and 3 deletions

View File

@ -2332,12 +2332,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 {