File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments