Skip to content

Commit

Permalink
fix(example): stricter check of correct round trip
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Mar 17, 2024
1 parent 696f865 commit 797e8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/real-forward-transform.f90
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ program forward_transform_of_real_function
print complex_format, "f_hat = ", f_hat
print real_format, "f_round_trip = ",f_round_trip

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

contains

Expand Down

0 comments on commit 797e8e6

Please sign in to comment.