Skip to content

Commit

Permalink
Convert to int.
Browse files Browse the repository at this point in the history
  • Loading branch information
spahrenk committed Jan 16, 2025
1 parent 05e6930 commit de723cc
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 @@ -2396,8 +2396,8 @@ int HPWH::getResistancePosition(int elementIndex) const
{
send_error("This index is not a resistance element.");
}

return 12. * heatSources[elementIndex]->heatDist.lowestNormHeight();
return static_cast<int>(HeatSource::CONDENSITY_SIZE *
heatSources[elementIndex]->heatDist.lowestNormHeight());
}

void HPWH::updateSoCIfNecessary()
Expand Down

0 comments on commit de723cc

Please sign in to comment.