mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Use C++ based count_sites for CMFD. Fix several bugs
This commit is contained in:
parent
1b42fa20c6
commit
829b4c4f91
9 changed files with 59 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue