Skip to content

Commit

Permalink
bug fix current
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonSBradley committed Apr 3, 2023
1 parent 20a1d9a commit d4c806c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function current(psi::Psi{2},Ω = 0)
@unpack ψ,X = psi
x,y = X
ψx,ψy = gradient(psi)
jx = @. imag(conj(ψ)*ψx) + Ω*y'
jy = @. imag(conj(ψ)*ψy) - Ω*x
jx = @. imag(conj(ψ)*ψx) + Ω*abs2(ψ)*y'
jy = @. imag(conj(ψ)*ψy) - Ω*abs2(ψ)*x
return jx,jy
end

Expand Down

0 comments on commit d4c806c

Please sign in to comment.