Skip to content

Commit 0ca90d4

Browse files
committed
Bugfix: missing an abs in translate_z
1 parent 4e800da commit 0ca90d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+ott/+utils/translate_z.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
end
288288

289289
% Keep B real until the end, makes things run faster
290-
B = 1i*2*pi*z*B;
290+
B = 1i*2*pi*abs(z)*B;
291291

292292
% This is faster than A = A + sparse(...) and A(sub2ind(...)) = [...]
293293
if z < 0

0 commit comments

Comments
 (0)