Skip to content

Commit

Permalink
Clean up gcc warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Dec 26, 2023
1 parent eaba2a9 commit ad3a009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HPWH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(tempInt);
}
Expand All @@ -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<int>(tempInt);
}
Expand Down

0 comments on commit ad3a009

Please sign in to comment.