From 4b690ab7518e6de2376ab3ebd01a12c7e463cba1 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sat, 5 Oct 2019 02:18:16 -0500 Subject: [PATCH] Fixing a bug. --- include/openmc/volume_calc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openmc/volume_calc.h b/include/openmc/volume_calc.h index 2a8273f9bf..18aa2e2d18 100644 --- a/include/openmc/volume_calc.h +++ b/include/openmc/volume_calc.h @@ -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