Skip to content

Commit

Permalink
allow -1 in B0_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
korbinian90 committed Sep 28, 2023
1 parent 348755e commit 3195658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tgv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ end

function set_parameters(alpha, res, B0_dir, cu)
# If there are other values than 0 and 1 in B0 dir then print a warning
if !all(B0_dir[i] in [0, 1] for i in 1:3)
if !all(abs(B0_dir[i]) in [0, 1] for i in 1:3)
@warn("Warning: works only for grid-aligned B0 directions at the moment, but it is B0_dir=$B0_dir")
end

Expand Down

0 comments on commit 3195658

Please sign in to comment.