Skip to content

Commit

Permalink
Merge pull request #1822 from NREL/fix/create_bar_width_length_condit…
Browse files Browse the repository at this point in the history
…ionals

Fix width and length conditionals in create_bar
  • Loading branch information
mdahlhausen authored Oct 6, 2024
2 parents 3272e43 + b6ad736 commit 52eda15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openstudio-standards/geometry/create_bar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def self.bar_hash_setup_run(model, args, length, width, floor_height, center_of_
facade_area = typical_width_facade_area
until (width_area + facade_area >= target_party_wall_area) || (width_counter == (args[:num_stories_above_grade].ceil * 2))
# update facade area for top story
if width_counter == args[:num_stories_above_grade].ceil - 1 || ((width_counter == (args[:num_stories_above_grade].ceil * 2)) - 1)
if (width_counter == (args[:num_stories_above_grade].ceil - 1)) || (width_counter == ((args[:num_stories_above_grade].ceil * 2) - 1))
facade_area = top_story_width_facade_area
else
facade_area = typical_width_facade_area
Expand All @@ -1061,7 +1061,7 @@ def self.bar_hash_setup_run(model, args, length, width, floor_height, center_of_
facade_area = typical_length_facade_area
until (length_area + facade_area >= target_party_wall_area) || (length_counter == args[:num_stories_above_grade].ceil * 2)
# update facade area for top story
if length_counter == args[:num_stories_above_grade].ceil - 1 || ((length_counter == args[:num_stories_above_grade].ceil * 2) - 1)
if (length_counter == (args[:num_stories_above_grade].ceil - 1)) || (length_counter == ((args[:num_stories_above_grade].ceil * 2) - 1))
facade_area = top_story_length_facade_area
else
facade_area = typical_length_facade_area
Expand Down

0 comments on commit 52eda15

Please sign in to comment.