mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fixing a bug.
This commit is contained in:
parent
5109bd0de1
commit
4b690ab751
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ public:
|
|||
for (int i = 0; i < volume.size(); i++) {
|
||||
// calculate weighted average of volume results
|
||||
auto& a_vol = volume[0];
|
||||
auto& b_vol = other.volume[1];
|
||||
auto& b_vol = other.volume[0];
|
||||
volume[0] = (a_samples * a_vol + b_samples * b_vol) / total_samples;
|
||||
|
||||
// propagate error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue