Skip to content

Commit 8e03e81

Browse files
committed
Reinstate expected array
1 parent 35533e9 commit 8e03e81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/7_Autograd/autograd.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ program example
4545
write (*,*) "Q = 3 * (a^3 - b*b/3) = 3*a^3 - b^2 = ", out_data(:)
4646

4747
! Check output tensor matches expected value
48-
if (.not. assert_allclose(out_data, [-12.0_wp, 65.0_wp], test_name="autograd_Q")) then
48+
expected(:) = [-12.0_wp, 65.0_wp]
49+
if (.not. assert_allclose(out_data, expected, test_name="autograd_Q")) then
4950
print *, "Error :: value of Q does not match expected value"
5051
stop 999
5152
end if

0 commit comments

Comments
 (0)