Skip to content

Commit 743a95d

Browse files
committed
fixed a chebyshevfft sign
1 parent f688bb3 commit 743a95d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Cartan"
22
uuid = "e24af43f-9fd5-4672-9264-a75f3ae40eb2"
33
authors = ["Michael Reed"]
4-
version = "0.4.12"
4+
version = "0.4.13"
55

66
[deps]
77
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

src/grid.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,12 @@ integral_impulse_line(t::TensorField) = TensorField(base(t),spectral_sum_impulse
628628
gradient_chebyshev(v,D=ChebyshevMatrix(v)) = D*v
629629

630630
function gradient_chebyshevfft(v::AbstractVector,d=spectral_diff_chebfft(v))
631-
U = real.(chebyshevfft(v))
631+
U = -real.(chebyshevfft(v))
632632
TensorField(v,chebyshevifft(d.*U,U,length(v)))
633633
end
634634

635635
function gradient_chebyshevfft(v::AbstractMatrix,i)
636-
U = real.(chebyshevfft(v,i))
636+
U = -real.(chebyshevfft(v,i))
637637
V = complex.(U)
638638
N,M = size(v)
639639
if isone(i)
@@ -651,7 +651,7 @@ function gradient_chebyshevfft(v::AbstractMatrix,i)
651651
end
652652

653653
function gradient_chebyshevfft(v::AbstractArray{T,3} where T,i)
654-
U = real.(chebyshevfft(v,i))
654+
U = -real.(chebyshevfft(v,i))
655655
V = complex.(U)
656656
N,M,R = size(v)
657657
if isone(i)

0 commit comments

Comments
 (0)