Skip to content

Commit 6ed2589

Browse files
authored
Minor floor_plan y-scale fix. (bmad-sim#1808)
* Minor floor_plan y-scale fix.
1 parent 36e6c45 commit 6ed2589

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tao/code/tao_scale_mod.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,10 @@ subroutine tao_scale_graph (graph, y_min, y_max, axis, include_wall, y_range, y2
386386
if (ix /= -2 .and. ix /= iu) cycle
387387
lat => s%u(iu)%model%lat
388388
do ib = 0, ubound(lat%branch, 1)
389-
do i = 0, lat%branch(ib)%n_ele_track
389+
do i = 0, lat%branch(ib)%n_ele_max
390390
ele => lat%branch(ib)%ele(i)
391+
if (ele%lord_status /= not_a_lord$ .and. ele%lord_status /= super_lord$) cycle ! Ignore overlays, etc.
392+
if (ele%slave_status == super_slave$) cycle
391393
call tao_floor_to_screen_coords (graph, ele%floor, end)
392394
if (end%r(1) > graph%x%max .or. end%r(1) < graph%x%min) cycle
393395
this_min = min(this_min, end%r(2))

tao/version/tao_version_mod.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
!-
77

88
module tao_version_mod
9-
character(*), parameter :: tao_version_date = "2025/11/22 00:03:51"
9+
character(*), parameter :: tao_version_date = "2025/11/22 00:28:17"
1010
end module

0 commit comments

Comments
 (0)