From ad3a009a8bb36d2a3da49d1a1c886320dcb58927 Mon Sep 17 00:00:00 2001 From: Neal Kruis Date: Tue, 26 Dec 2023 10:10:15 -0700 Subject: [PATCH] Clean up gcc warnings. --- src/HPWH.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HPWH.cc b/src/HPWH.cc index 574b2155..b4f01f79 100644 --- a/src/HPWH.cc +++ b/src/HPWH.cc @@ -5103,7 +5103,7 @@ int HPWH::HPWHinit_file(string configFile) else if (token == "externalInlet") { line_ss >> tempInt; - if (tempInt < num_nodes && tempInt >= 0) + if (tempInt < num_nodes) { heatSources[heatsource].externalInletHeight = static_cast(tempInt); } @@ -5119,7 +5119,7 @@ int HPWH::HPWHinit_file(string configFile) else if (token == "externalOutlet") { line_ss >> tempInt; - if (tempInt < num_nodes && tempInt >= 0) + if (tempInt < num_nodes) { heatSources[heatsource].externalOutletHeight = static_cast(tempInt); }