Skip to content

Commit

Permalink
Fixes possibility of extra balanced supplemental ventilation system d…
Browse files Browse the repository at this point in the history
…ue to floating point comparison.
  • Loading branch information
shorowit committed Jan 9, 2025
1 parent 6666021 commit a13a74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rulesets/resources/301ruleset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ def self.calc_rated_home_q_fans_by_system(orig_bldg, all_mech_vent_fans)
# Check if supplemental balanced ventilation is needed
# This should only happen when the home has no mechanical ventilation, because
# otherwise the existing ventilation fans would have been increased instead.
if min_q_fan > q_fans.values.sum
if min_q_fan - q_fans.values.sum > 0.1
q_fan_bal_remain = calc_rated_home_qfan(orig_bldg, true, 0.0)
end
end
Expand Down

0 comments on commit a13a74a

Please sign in to comment.