From 5a11bb23b25e2c5e90a282f6c1456e7397b5aab5 Mon Sep 17 00:00:00 2001 From: Phil Ahrenkiel Date: Mon, 6 Jan 2025 15:48:44 -0700 Subject: [PATCH] Fix formatting. --- src/Condenser.cc | 1 - src/HPWHUtils.cc | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Condenser.cc b/src/Condenser.cc index e52df41b..f7eb320b 100644 --- a/src/Condenser.cc +++ b/src/Condenser.cc @@ -139,7 +139,6 @@ bool HPWH::Condenser::shouldLockOut(double heatSourceAmbientT_C) const bool HPWH::Condenser::shouldUnlock(double heatSourceAmbientT_C) const { - // if it's already unlocked, keep it unlocked if (!isLockedOut()) { diff --git a/src/HPWHUtils.cc b/src/HPWHUtils.cc index b1125d86..11e6dfb6 100644 --- a/src/HPWHUtils.cc +++ b/src/HPWHUtils.cc @@ -907,8 +907,9 @@ void HPWH::to_json( if (perf.secondary_heat_exchanger_is_set) { nlohmann::json j_secondary_heat_exchanger; - auto &shs = perf.secondary_heat_exchanger; - j_secondary_heat_exchanger["cold_side_temperature_offset"] = shs.cold_side_temperature_offset; + auto& shs = perf.secondary_heat_exchanger; + j_secondary_heat_exchanger["cold_side_temperature_offset"] = + shs.cold_side_temperature_offset; j_secondary_heat_exchanger["hot_side_temperature_offset"] = shs.hot_side_temperature_offset; j_secondary_heat_exchanger["extra_pump_power"] = shs.extra_pump_power; j_perf["secondary_heat_exchanger"] = j_secondary_heat_exchanger;