Skip to content

Commit

Permalink
Merge pull request #74 from loganbvh/pearl-vortex
Browse files Browse the repository at this point in the history
Fix k space coordinates in pearl_vortex
  • Loading branch information
loganbvh committed Jul 3, 2022
2 parents f2d0667 + 544eb3f commit 42c1eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superscreen/sources/vortex.py
Expand Up @@ -141,8 +141,8 @@ def pearl_vortex(
# Define Fourier-space coordinates
kmaxx = np.pi / dx
kmaxy = np.pi / dy
kx = np.linspace(-kmaxx, kmaxx, xs.shape[0])
ky = np.linspace(-kmaxy, kmaxy, ys.shape[0])
kx = np.linspace(-kmaxx, kmaxx, xs.shape[0], endpoint=False)
ky = np.linspace(-kmaxy, kmaxy, ys.shape[0], endpoint=False)
X, Y = np.meshgrid(xs, ys)
KX, KY = np.meshgrid(kx, ky)
K = np.sqrt(KX**2 + KY**2)
Expand Down

0 comments on commit 42c1eb3

Please sign in to comment.