diff --git a/src/HPWH.cc b/src/HPWH.cc index 577514ba..2b1494c1 100644 --- a/src/HPWH.cc +++ b/src/HPWH.cc @@ -3444,8 +3444,8 @@ void HPWH::updateTankTemps(double drawVolume_L, if (i > 0) { - double heatTransferred_kJ = incrementalDrawVolume_N * - (1. - inletFraction) * tankTemps_C[i - 1]; + double heatTransferred_kJ = + incrementalDrawVolume_N * (1. - inletFraction) * tankTemps_C[i - 1]; tankTemps_C[i] += heatTransferred_kJ; tankTemps_C[i - 1] -= heatTransferred_kJ; } diff --git a/src/HPWHHeatSources.cc b/src/HPWHHeatSources.cc index de9c02c2..b70572b0 100644 --- a/src/HPWHHeatSources.cc +++ b/src/HPWHHeatSources.cc @@ -969,7 +969,6 @@ double HPWH::HeatSource::addHeatExternal(double externalT_C, hpwh->mixTankNodes( 0, hpwh->getNumNodes(), 1.0); // 1.0 will give even mixing, so all temperatures // mixed end at average temperature. - // how much heat is added this timestep getCapacityMP(externalT_C, hpwh->tankTemps_C[externalOutletHeight],