Skip to content

Commit

Permalink
adde another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Sep 4, 2022
1 parent 4aef13a commit 7a73293
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/root_tests.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1202,12 +1202,21 @@ subroutine problems(x, ax, bx, fx, xroot, cases, num_of_problems, latex)
if (present(x)) f = sin(x) - x**2
if (present(latex)) latex = '\sin(x) - x^2'

! linear function:
case(118)
a = -1000.0_wp
b = 1.0_wp
root = 0.0_wp
if (present(x)) f = x
if (present(latex)) latex = 'x'


case default
write(*,*) 'invalid case: ', nprob
error stop 'invalid case'
end select

if (present(num_of_problems)) num_of_problems = 117
if (present(num_of_problems)) num_of_problems = 118

! outputs:
if (present(ax)) ax = a
Expand Down

0 comments on commit 7a73293

Please sign in to comment.