@@ -4035,7 +4035,7 @@ RC DHWHEATER::wh_EndIvl( // end-of-hour accounting
40354035
40364036// DHWHEATER subhour models accum to wh_inElec, wh_inElecBu, wh_inElecXBU, and wh_inFuel
40374037
4038- // do not for C_IVLCH_S
4038+ // do not call for C_IVLCH_S
40394039
40404040{
40414041 RC rc = RCOK;
@@ -4487,14 +4487,22 @@ RC DHWHEATER::wh_DoSubhrEnd( // end-of-subhour
44874487 wh_qLoss = wh_HPWH.hw_qLoss ;
44884488 wh_qEnv = wh_HPWH.hw_qEnv ;
44894489 wh_balErrCount = wh_HPWH.hw_balErrCount ;
4490- if (pWS->ws_tUse - wh_HPWH.hw_tHWOut > 1 .f )
4490+ wh_tHWOut = wh_HPWH.hw_tHWOut ;
4491+ wh_qXBU = wh_HPWH.hw_HPWHxBU ;
4492+ if (pWS->ws_tUse - wh_tHWOut > 1 .f )
4493+ {
4494+ #if 0 && defined( _DEBUG)
4495+ if (wh_HPWH.hw_nzDrawCount != 0)
4496+ printf("\nUnexpected unmet");
4497+ #endif
44914498 wh_unMetSh++; // unexpected, XBU should maintain temp
44924499 // will happen if ws_tUse changes (e.g. via expression)
4493- // during a period of no draw
4500+ // during a period of no draw
4501+ }
44944502
44954503 // energy output and electricity accounting (assume no fuel)
44964504 wh_qHW = KWH_TO_BTU (wh_HPWH.hw_qHW ); // hot water heating, Btu
4497- wh_inElecXBUSh = wh_qXBU = wh_HPWH. hw_HPWHxBU ; // add'l backup heating, Btu
4505+ wh_inElecXBUSh = wh_qXBU; // add'l backup heating, Btu
44984506
44994507 wh_inElecSh = wh_HPWH.hw_inElec [1 ] * BtuperkWh + wh_parElec * BtuperWh*Top.tp_subhrDur ;
45004508 wh_inElecBUSh = wh_HPWH.hw_inElec [0 ] * BtuperkWh;
0 commit comments