Skip to content

Commit 69ff238

Browse files
committed
Too many guesses
1 parent ffd552d commit 69ff238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fortran/solver/src/solver.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ subroutine solve(solver)
5858
use guess_mod, only: guess_t
5959
class(solver_t), intent(inout) :: solver
6060
type(guess_t), allocatable :: guess(:)
61-
integer, parameter :: N_guess = 4096
61+
integer, parameter :: N_guess = 16*4096
6262
integer :: iter, guess_id, max_length, corr_id
6363
corr_id = -1
6464
infinity: do
@@ -67,7 +67,7 @@ subroutine solve(solver)
6767
do guess_id = 1, N_guess
6868
call guess(guess_id)%init(solver%library)
6969
end do
70-
iterations: do iter = 1, 3 * 9 * size(solver%library%rooms)
70+
do iter = 1, 3 * 9 * size(solver%library%rooms)
7171
max_length = 0
7272
do guess_id = 1, N_guess
7373
call guess(guess_id)%eval()
@@ -79,7 +79,7 @@ subroutine solve(solver)
7979
end if
8080
end do
8181
print '("iter: ",I4," ML:",I4)', iter, max_length
82-
end do iterations
82+
end do
8383
end do infinity
8484

8585
if (corr_id < 0) error stop "solution not found"

0 commit comments

Comments
 (0)