We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eff067 commit c63a282Copy full SHA for c63a282
fortran/solver/src/guess.f90
@@ -63,6 +63,7 @@ integer function execute_plan(library, plan) result(max_length)
63
allocate(mask(library%n_rooms, 0:5), source = .false.)
64
mask = library%mask
65
current_room = 0
66
+ max_length = 0
67
do step_id = 1, size(plan%steps)
68
next_door = plan%steps(step_id)%door_out
69
next_room_type = plan%steps(step_id)%room_in
@@ -73,7 +74,7 @@ integer function execute_plan(library, plan) result(max_length)
73
74
else
75
exit
76
end if
- max_length = min(step_id, max_length)
77
+ max_length = step_id
78
end do
79
library%final_mask = library%final_mask .and. mask
80
end function execute_plan
0 commit comments