Skip to content

Commit

Permalink
bugfix in NanoComp#983
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Aug 23, 2019
1 parent a0afdda commit d0544eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void structure::choose_chunkdivision(const grid_volume &thegv, int desired_num_c
}
delete[] costs;
double mean = sum / count_processors();
double stddev = sumsq - num_chunks * mean * mean;
double stddev = sumsq - count_processors() * mean * mean;
stddev = count_processors() == 1 || stddev <= 0 ? 0.0 : sqrt(stddev / (count_processors() - 1));
master_printf("estimated cost mean = %g, stddev = %g\n", mean, stddev);
}
Expand Down

0 comments on commit d0544eb

Please sign in to comment.