Use C++ based count_sites for CMFD. Fix several bugs

This commit is contained in:
Paul Romano 2018-09-05 06:35:38 -05:00
parent 1b42fa20c6
commit 829b4c4f91
9 changed files with 59 additions and 14 deletions

View file

@ -520,7 +520,7 @@ void read_settings_xml()
// If the user did not specify how many mesh cells are to be used in
// each direction, we automatically determine an appropriate number of
// cells
int n = std::ceil(std::pow(settings::n_particles / 20, 1.0/3.0));
int n = std::ceil(std::pow(settings::n_particles / 20.0, 1.0/3.0));
m.shape_ = {n, n, n};
m.n_dimension_ = 3;