Skip to content

Commit

Permalink
Fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ahrenkiel authored and Phil Ahrenkiel committed Dec 29, 2023
1 parent 3a2fa9b commit 0bd44d3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/HPWH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3382,8 +3382,6 @@ void HPWH::updateTankTemps(double drawVolume_L,
double drawVolume_N = drawVolume_L / nodeVolume_L;
double drawCp_kJperC = CPWATER_kJperkgC * DENSITYWATER_kgperL * drawVolume_L;

double totalHeatExchange_kJ = 0.;

// heat-exchange models
if (hasHeatExchanger)
{
Expand All @@ -3393,7 +3391,6 @@ void HPWH::updateTankTemps(double drawVolume_L,
double maxHeatExchange_kJ = drawCp_kJperC * (nodeT_C - outletTemp_C);
double heatExchange_kJ = nodeHeatExchangerEffectiveness * maxHeatExchange_kJ;

totalHeatExchange_kJ += heatExchange_kJ;
nodeT_C -= heatExchange_kJ / nodeCp_kJperC;
outletTemp_C += heatExchange_kJ / drawCp_kJperC;
}
Expand Down

0 comments on commit 0bd44d3

Please sign in to comment.