Skip to content

Commit 797e8e6

Browse files
committed
fix(example): stricter check of correct round trip
1 parent 696f865 commit 797e8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/real-forward-transform.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ program forward_transform_of_real_function
3838
print complex_format, "f_hat = ", f_hat
3939
print real_format, "f_round_trip = ",f_round_trip
4040

41-
call assert(any(abs(f_round_trip - f) < tolerance), "inverse of forward FFT must yield the original function")
41+
call assert(all(abs(f_round_trip - f) < tolerance), "inverse of forward FFT must yield the original function")
4242

4343
contains
4444

0 commit comments

Comments
 (0)