Skip to content

Commit c937005

Browse files
committed
tests
1 parent 37d57da commit c937005

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

test/nlesolver_test_1.f90

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ program nlesolver_test_1
2626
integer :: i
2727
character(len=:),allocatable :: description
2828
real(wp) :: fmin_tol
29+
integer :: bounds_mode
2930

3031
fmin_tol = 1.0e-2_wp ! don't need a tight tol for this
3132
n_intervals = 2
@@ -36,7 +37,9 @@ program nlesolver_test_1
3637
write(*,*) '* nlesolver_test_1 *'
3738
write(*,*) '***********************'
3839
write(*,*) ''
39-
do i = 1, 8
40+
do i = 1, 11
41+
42+
bounds_mode = NLESOLVER_IGNORE_BOUNDS ! default
4043

4144
select case (i)
4245
case(1)
@@ -79,6 +82,26 @@ program nlesolver_test_1
7982
use_broyden = .true.
8083
f_evals = 0
8184
description = 'Fixed point search + broyden'
85+
86+
case(9)
87+
step_mode = 4
88+
use_broyden = .true.
89+
f_evals = 0
90+
description = 'Fixed point search + broyden + scalar bounds'
91+
bounds_mode = NLESOLVER_SCALAR_BOUNDS
92+
case(10)
93+
step_mode = 4
94+
use_broyden = .true.
95+
f_evals = 0
96+
description = 'Fixed point search + broyden + vector bounds'
97+
bounds_mode = NLESOLVER_VECTOR_BOUNDS
98+
case(11)
99+
step_mode = 4
100+
use_broyden = .true.
101+
f_evals = 0
102+
description = 'Fixed point search + broyden + wall bounds'
103+
bounds_mode = NLESOLVER_WALL_BOUNDS
104+
82105
case default
83106
error stop 'invalid case'
84107
end select

0 commit comments

Comments
 (0)